Re: pause(), wait() and infinity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 31, 2009 at 8:43 AM, Andy Dalton<andy.dalton@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux