diff options
author | Leon Timmermans <fawaka@gmail.com> | 2013-06-10 00:12:11 +0200 |
---|---|---|
committer | Leon Timmermans <fawaka@gmail.com> | 2013-06-13 19:15:04 +0200 |
commit | 6fd8c33ab8e814d9071f229419b493eea5a6df0f (patch) | |
tree | af3f5169331a1263b78a4754b1da322cedddce2f /util.c | |
parent | 6b28e74b02b8a23cdbd7fd19c2874a19c37827de (diff) | |
download | perl-6fd8c33ab8e814d9071f229419b493eea5a6df0f.tar.gz |
Don't ignore signals on pclose
This is a bug, per POSIX
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -2766,19 +2766,9 @@ Perl_my_pclose(pTHX_ PerlIO *ptr) #endif close_failed = (PerlIO_close(ptr) == EOF); SAVE_ERRNO; -#ifndef PERL_MICRO - rsignal_save(SIGHUP, (Sighandler_t) SIG_IGN, &hstat); - rsignal_save(SIGINT, (Sighandler_t) SIG_IGN, &istat); - rsignal_save(SIGQUIT, (Sighandler_t) SIG_IGN, &qstat); -#endif if (should_wait) do { pid2 = wait4pid(pid, &status, 0); } while (pid2 == -1 && errno == EINTR); -#ifndef PERL_MICRO - rsignal_restore(SIGHUP, &hstat); - rsignal_restore(SIGINT, &istat); - rsignal_restore(SIGQUIT, &qstat); -#endif if (close_failed) { RESTORE_ERRNO; return -1; |