adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e219f95d75
commit
b823ecc34e
30
process.c
30
process.c
@ -3530,24 +3530,24 @@ disable_child_handler_fork_child(struct child_handler_disabler_state *old, char
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
for (sig = 1; sig < NSIG; sig++) {
|
for (sig = 1; sig < NSIG; sig++) {
|
||||||
sig_t handler = signal(sig, SIG_DFL);
|
sig_t handler = signal(sig, SIG_DFL);
|
||||||
|
|
||||||
if (handler == SIG_ERR && errno == EINVAL) {
|
if (handler == SIG_ERR && errno == EINVAL) {
|
||||||
continue; /* Ignore invalid signal number */
|
continue; /* Ignore invalid signal number */
|
||||||
}
|
}
|
||||||
if (handler == SIG_ERR) {
|
if (handler == SIG_ERR) {
|
||||||
ERRMSG("signal to obtain old action");
|
ERRMSG("signal to obtain old action");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#ifdef SIGPIPE
|
#ifdef SIGPIPE
|
||||||
if (sig == SIGPIPE) {
|
if (sig == SIGPIPE) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* it will be reset to SIG_DFL at execve time, instead */
|
/* it will be reset to SIG_DFL at execve time, instead */
|
||||||
if (handler == SIG_IGN) {
|
if (handler == SIG_IGN) {
|
||||||
signal(sig, SIG_IGN);
|
signal(sig, SIG_IGN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = sigprocmask(SIG_SETMASK, &old->sigmask, NULL); /* async-signal-safe */
|
ret = sigprocmask(SIG_SETMASK, &old->sigmask, NULL); /* async-signal-safe */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user