Luca Olivetti wrote: > This is another test program that shows my problem with fork: as soon as > I start the thread, the main program stops working (the thread *is* > running, you can put a writeln in its loop to show it). Note that in > this short example I don't close stdin,stdout,stderr, I don't block > signals but it doesn't matter (I did it all and the result is the same). > The same happens with the native compiler and the cross compiler.
I can reproduce this, (gdb) bt #0 0x401afd80 in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x401aea7c in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x401afc40 in pthread_create@@GLIBC_2.1 () from /lib/libpthread.so.0 Seems like it's waiting for some signal to be passed to the process, but it doesn't happen. Micha _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal