[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [50 character or so descriptive subject here (for reference)]
From: |
Chet Ramey |
Subject: |
Re: [50 character or so descriptive subject here (for reference)] |
Date: |
Fri, 15 Dec 2000 16:31:52 -0500 |
I wrote:
> If the SIGCHLD happens between the time that wait_for finds that the
> child process is running and the time it calls waitchld(), there might
> be a problem. There's a very small window before wait_for sets
> waiting_for_job to 1 and calls waitchld() that a SIGCHLD may arrive.
This is wrong; the first thing wait_for() does is to block SIGCHLD.
There's no window.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/