trap() block signal mask, esp. CHLD

Discussion in 'Ruby' started by Dan Janowski, Feb 8, 2005.

  1. Dan Janowski

    Dan Janowski Guest

    Hi,

    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?

    Thanks,

    Dan
     
    Dan Janowski, Feb 8, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pavel Smerk
    Replies:
    2
    Views:
    172
    Yukihiro Matsumoto
    Jul 18, 2006
  2. Marcin Tyman

    Conversion mask in hex to bit mask

    Marcin Tyman, May 6, 2008, in forum: Ruby
    Replies:
    4
    Views:
    822
    Robert Klemme
    May 6, 2008
  3. Sébastien Cottalorda

    Pb $SIG{CHLD}=sub{wait()}; in Perl 5.8.0

    Sébastien Cottalorda, Aug 1, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    124
    Sébastien Cottalorda
    Aug 1, 2003
  4. 187
    Replies:
    2
    Views:
    565
    Bart Lateur
    Jul 29, 2004
  5. Heinrich Mislik

    $SIG{CHLD} and system

    Heinrich Mislik, Sep 30, 2004, in forum: Perl Misc
    Replies:
    5
    Views:
    159
    Heinrich Mislik
    Oct 1, 2004
Loading...

Share This Page