Issue #12439 has been reported by Eric Wong.

----------------------------------------
Misc #12439: [PATCH cleanup] process.c (disable_child_handler_fork_child): simplify
https://bugs.ruby-lang.org/issues/12439

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: Akira Tanaka
----------------------------------------
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.


Comments?  Will commit in a week or two if no response.
Thanks.


---Files--------------------------------
0001-process.c-disable_child_handler_fork_child-simplify.patch (3.13 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>