> The available glib is an old one (version 1.2), so the references to
> libgthread don't work. I tried to compile a more recent one (v 2.0.7),
> but it requires several other libraries -- libiconv, gettext... --
> which are not provided with uClibC.
>
What I propose as first step is to use only the libpthread
from the GNU libc (glibc, pkg libc6) and to not mix them with the libgthread
from the Gnome lib (glib, pkg libglib2.0).
So stick only to the pthread_xxx() fcts described in glibc-doc.
uClibc should support pthreads properly:
config UCLIBC_HAS_THREADS
bool "POSIX Threading Support"
depends on !HAS_NO_THREADS
default y
Then, if setuid still does not setup all processes properly after that,
I will reorder the operations:
- (in main) USB enumerate
- USB open handler
- setuid nobody
- create USB and TCP threads
So setuid is before creating threads/forking and I don't need TCP server
to wait anymore.
And we'll see what is still broken.
Phil
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
tux-droid-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-user