BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • tinyproxy on soekris

    2 answers - 1531 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hello,
    I have been trying to get 'tinyproxy' working on a soekris box (obsd
    3.6). I made sure I have a kernel with shared memory enabled, but still
    I get
    tinyproxy: Could not create the pool of children
    in the logs (debug)
    ERRR Aug 17 19:30:21 [20792]: Could not allocate memory for child
    counting.
    I tracked this down to:
    servers_waiting = malloc_shared_memory(*sizeof*(*unsigned* *int*));
    *if* (servers_waiting == MAP_FAILED) {
    log_message(LG_ERR,
    *"Could not allocate memory for child counting."*);
    *return* -1;
    }
    *servers_waiting = 0;
    and
    *void* *
    *malloc_shared_memory*(size_t size)
    {
    *int* fd;
    *void* *ptr;
    *char* buffer[32];
    *static* *char* *shared_file = *"/tmp/tinyproxy.shared.XXXXXX"*;
    assert(size 0);
    strlcpy(buffer, shared_file, *sizeof*(buffer));
    *if* ((fd = mkstemp(buffer)) == -1)
    *return* MAP_FAILED;
    unlink(buffer);
    *if* (ftruncate(fd, size) == -1)
    *return* MAP_FAILED;
    ptr = mmap(NULL, size, PRT_READ | PRT_WRITE, MAP_SHARED, fd, 0);
    *return* ptr;
    }
    Now as this works on the GENERIC kernel on a standard install, I am
    posting it here. I am unable to find the culprit and I am sure I am
    overlooking something. Please note that /dev has less devices than a
    normal install. Additionaly /tmp lives on a mfs partition of about 7mb.
    What am I overlooking?
    Kind Regards,
    B. de Bruin
  • No.1 | | 336 bytes | |

    * Bolke de Bruin <bdbruin (AT) aub (DOT) nl[2005-08-17 20:12]:
    I have been trying to get 'tinyproxy' working on a soekris box
    Now as this works on the GENERIC kernel on a standard install

    well, then just use a GENERIC kernel and a standard install on the
    soekris and stop masturbating over a few saved bytes
  • No.2 | | 610 bytes | |

    Henning Brauer wrote:

    >* Bolke de Bruin <bdbruin (AT) aub (DOT) nl[2005-08-17 20:12]:


    >
    >>I have been trying to get 'tinyproxy' working on a soekris box
    >>Now as this works on the GENERIC kernel on a standard install

    >
    >>

    >
    >well, then just use a GENERIC kernel and a standard install on the
    >soekris and stop masturbating over a few saved bytes


    Haha, nah it wouldn't be able to handle MY size ;-)

Re: tinyproxy on soekris


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "BSD"

EMSDN.COM