summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLeon Timmermans <fawaka@gmail.com>2013-06-10 00:12:11 +0200
committerLeon Timmermans <fawaka@gmail.com>2013-06-13 19:15:04 +0200
commit6fd8c33ab8e814d9071f229419b493eea5a6df0f (patch)
treeaf3f5169331a1263b78a4754b1da322cedddce2f /util.c
parent6b28e74b02b8a23cdbd7fd19c2874a19c37827de (diff)
downloadperl-6fd8c33ab8e814d9071f229419b493eea5a6df0f.tar.gz
Don't ignore signals on pclose
This is a bug, per POSIX
Diffstat (limited to 'util.c')
-rw-r--r--util.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/util.c b/util.c
index 66793a3885..695348619a 100644
--- a/util.c
+++ b/util.c
@@ -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;