Non-blocking wait…

December 24th, 2005

The parent wants to wait() for child’s exit, but not blockingly… how to do this?

One of the solution, i found was to trap SIGCHILD. This signal is sent to the parent on child’s termination. The parent can then loop on a bolean variable to check for child’s existance, while doing other work… something i needed exactly for sticker!

Lets see, will it work as i wanted or not… :-)

Posted in Sticker, Technology | Comments (1)

One Response to “Non-blocking wait…”

  1. makuchaku Says:

    I’ve almost fsck’d all of the code… will now take almost 1 day to sanitize it! :-(

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image