On Fri, Jul 31, 2009 at 8:43 AM, Andy Dalton<[email protected]> wrote:
> Denis,
>
> You have a race condition.  If the parent process gets scheduled first and
> executes the pause() before the child runs and sends the SIGUSR1 signal, you
> get the behavior you're expecting.  However, if the child gets scheduled
> first and sends the signal before the parent has executed pause(), when the
> parent eventually gets scheduled it will execute the pause() and block
> waiting for some signal (after the signal send by the child has already been
> received and handled).
>
> Andy
>

This is similar to the truth. Thanks.

-- 
Regards,
Denis

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to