Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > trap() block signal mask, esp. CHLD

Thread Tools

trap() block signal mask, esp. CHLD

Dan Janowski
Posts: n/a

In managing many sub-processes and using trap() with SIGCHLD, there is
a re-entry problem because there is no way to have a
sigprocmask(SIG_BLOCK,...) in effect while Ruby code is running. At
least this seems to be the case.

Interestingly, Ruby internals use SIG_BLOCK for protection, I am
interested in expanding this to Ruby code. Suggestions on how to do
this, or even a patch?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selective $SIG{CHLD} Eric Pozharski Perl Misc 0 11-23-2010 09:54 PM
How to call system having trap("CHLD", "IGNORE")? Pavel Smerk Ruby 2 07-18-2006 05:38 AM
help with timed command, CHLD signals, return codes axeman Perl Misc 5 04-13-2006 09:07 PM
$SIG{CHLD} and system Heinrich Mislik Perl Misc 5 10-01-2004 12:04 PM
Pb $SIG{CHLD}=sub{wait()}; in Perl 5.8.0 Sébastien Cottalorda Perl Misc 1 08-01-2003 04:19 PM