Buggy program that could give unspecified behaviour, unless pthread
standard talks about orphaned threads...
Your main program can die (exit) before child thread ends, so it has
nobody to notify its dying or return to.
Try with a sleep(1) before main return, or better, do a
pthread_join().
-- J.A. Magallon # Let the source be with you... mailto:jamagallon@able.es Mandrake Linux release 8.2 (Cooker) for i586 Linux werewolf 2.4.18-pre9-slb #3 SMP Fri Feb 8 01:33:12 CET 2002 i686 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/