Re: Patch: CLONE_PPID (was kernel thread support - LWP's)

Miquel van Smoorenburg (miquels@cistron.nl)
21 Jul 1999 01:39:47 +0200


In article <cistron.19990720232225.15828.qmail@defiant.cqc.com>,
Alan Curry <pacman-kernel@cqc.com> wrote:
>Jeremy Fitzhardinge writes the following:
>>Any process can have children it doesn't know about creating, so this is not a
>>new situation. It doesn't seem worth adding cruft to prevent.
>
>Are you prepared to give an example?

Well I certainly can:

main()
{
if (fork() == 0) {
/* Child */
sleep(1000000);
exit(1);
}
execl("/bin/sh", "sh", NULL);
}

Mike.

-- 
... somehow I have a feeling the hurting hasn't even begun yet
	-- Bill, "The Terrible Thunderlizards"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/