On Tue, Jul 02, 2002 at 01:46:50PM +0200, Sven Neumann wrote: > Denis Oliver Kropp <[EMAIL PROTECTED]> writes: > > > Did you link your application with "-lpthread"? > > this stuff always confuses me but shouldn't libdirectfb automatically > pull in libpthread? Or is the linker really that stupid that he needs > the explicit -lpthread to recognize that some voodoo needs to be > applied to libc to make it threadsafe?
There's also the magic of the /usr/lib/gcc-lib/i386-linux/2.95.4/specs file which passes -D_REENTRANT to cpp when you pass -lpthread to the gcc during *compilation*. But I think the trouble with fork() without execve() is that exit() tries to run atexit handlers which want to clean up things they shouldn't. Johannes -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
