[ruby-cvs:62730] normal:r55566 (trunk): process.c (disable_child_handler_fork_child): simplify

normal at ruby-lang.org normal at ruby-lang.org
Sun Jul 3 06:13:26 JST 2016


normal	2016-07-03 06:13:26 +0900 (Sun, 03 Jul 2016)

  New Revision: 55566

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55566

  Log:
    process.c (disable_child_handler_fork_child): simplify
    
    signal(2) is portable for SIG_DFL and SIG_IGN, so we do not
    need the extra code for sigaction(2).
    
    Also, execve will reset all signal handlers to default
    anyways, so there is little sense in preserving old
    signal handler besides SIG_IGN.
    
    Hopefully this makes the code easier-to-understand and
    maintain.
    
    * process.c (disable_child_handler_fork_child): simplify
      [ruby-core:75781] [Misc #12439]

  Modified files:
    trunk/ChangeLog
    trunk/process.c


More information about the ruby-cvs mailing list