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

Jeremy Fitzhardinge (jeremy@goop.org)
Tue, 20 Jul 1999 16:49:02 -0700 (PDT)


On 20-Jul-99 Alan Curry wrote:
> Jeremy Fitzhardinge writes the following:
>>
>>On 20-Jul-99 Matthew Kirkwood wrote:
>>> There may be code out there which gets confused on receiving a SIGCLD
>>> for (or wait()ing on) a child which it doesn't remember creating.
>>
>>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?
>

Sure:
if (fork())
execl("unsuspecting program");
else
{
/* do things, exit when it's least expected */
}

J

-
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/