diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-02 21:13:26 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-02 21:13:26 +0000 |
commit | d8e3b622ffa39adef78f42c7d8740fe2bcbc3cb2 (patch) | |
tree | 59b0d2620e24a0c4762ae09a7511c4e538f6a28c /eval_error.c | |
parent | 9763d91dc8543c1e550f7ca2a974a81e986a6a94 (diff) | |
download | ruby-d8e3b622ffa39adef78f42c7d8740fe2bcbc3cb2.tar.gz |
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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
0 files changed, 0 insertions, 0 deletions