www.emsdn.com
Class Profile: Home »» BSD [BSD] under "BSD" »»» tinyproxy on soekris

tinyproxy on soekris


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# | By Developer Tags User at [2008-5-10] | size: 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. 1# | By Developer Tags User at [2008-5-10] | size: 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 ;-)



BSD Hot!

BSD New!


Copyright © 2008 www.emsdn.com • All rights reserved • CMS Theme by www.emsdn.com - 0.344