1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Mon Jan 19 16:33:52 JST 1998

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@27 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-01-19 07:34:00 +00:00
parent 0205517a8c
commit 00b6e05470
4 changed files with 10 additions and 3 deletions

View file

@ -579,6 +579,7 @@ rb_syswait(pid)
{
RETSIGTYPE (*hfunc)(), (*qfunc)(), (*ifunc)();
int status;
int i;
#ifdef SIGHUP
hfunc = signal(SIGHUP, SIG_IGN);
@ -588,7 +589,9 @@ rb_syswait(pid)
#endif
ifunc = signal(SIGINT, SIG_IGN);
if (rb_waitpid(pid, 0, &status) < 0) rb_sys_fail("wait");
do {
i = rb_waitpid(pid, 0, &status);
} while (i == -1 && errno == EINTR);
#ifdef SIGHUP
signal(SIGHUP, hfunc);