Selective $SIG{CHLD}

Discussion in 'Perl Misc' started by Eric Pozharski, Nov 23, 2010.

  1. Context: An object forks multiple childs (with help of IO::pipe, if
    that matters). If an object is B<DESTROY>ed then everything is just
    fine (there's B<DESTROY> and it works OK). However if filehandles are
    closed first then an application get $SIG{CHLD}, obviously. The problem
    is that that order (what is B<DESTROY>ed first) is likely out of my
    control.

    Thus the question. Is there any way (except writing, obviously global,
    $SIG{CHLD} handler that would selectively C<IGNORE> or C<DEFAULT> just
    got signal) to handle that? Look, I don't understand that as an *easy*
    way. I think, that's least intrusive in the outer app environment.

    Any comments? I think, the answer is negative.

    --
    Torvalds' goal for Linux is very simple: World Domination
    Stallman's goal for GNU is even simpler: Freedom
     
    Eric Pozharski, Nov 23, 2010
    #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. matchstick86

    sig : process vs. process(sig)

    matchstick86, Oct 12, 2009, in forum: VHDL
    Replies:
    1
    Views:
    571
    power_hf2005
    Oct 13, 2009
  2. Dan Janowski

    trap() block signal mask, esp. CHLD

    Dan Janowski, Feb 8, 2005, in forum: Ruby
    Replies:
    0
    Views:
    135
    Dan Janowski
    Feb 8, 2005
  3. Pavel Smerk
    Replies:
    2
    Views:
    180
    Yukihiro Matsumoto
    Jul 18, 2006
  4. 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:
    127
    Sébastien Cottalorda
    Aug 1, 2003
  5. Heinrich Mislik

    $SIG{CHLD} and system

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

Share This Page