On Mon, Jan 18, 2010 at 3:44 PM, John David Anglin <dave@xxxxxxxxxxxxxxxxxx> wrote: >> Actually I did tested this with the minifail test program, and changed >> thread_run() to call _exit(0) at the end instead of "return 0": >> void* thread_run(void* arg) { >> ... >> /* return (void *)&status; */ >> _exit(0); >> } >> With strace I then suddenly got exit_group() which seems more correct: >> [pid 1910] write(1, "Thread OK.\n", 11) = 11 >> [pid 1910] exit_group(0) = ? > > The child of the fork should exit using _exit(0). Otherwise, it messes > with the file descriptors of the parent. Thanks for verifying this. I'm looking into this. Cheers, Carlos. -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html