Re: clone, signal and pids

David Wragg (dpw@doc.ic.ac.uk)
11 Feb 1999 01:23:09 +0000


Ben Bridgwater <bennyb@ntplx.net> writes:
> The Linux process clone() call was implemented to support implementation
> of the POSIX pthreads standard. The standard requires that threads have
> the same pid, and that a signal be sent to only one thread if more than
> one hasn't blocked it.

Which is beside the point, because Linux doesn't implement this either
(yet). Trace the code from sys_kill: the signal just goes to the
process returned by find_task_by_pid(pid), which is completely
arbitary.

David Wragg

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