Skip to content
Browse files

Use POSIX::_exit in run_forked() instead of exit()

Reported by Mithun Ayachit as rt.cpan.org #76901
  • Loading branch information...
1 parent 30af622 commit 917b0208cd9f6fd4ef471e2fd50bd984b0708d29 @bingos bingos committed
Showing with 9 additions and 3 deletions.
  1. +6 −0 CHANGES
  2. +3 −3 lib/IPC/Cmd.pm
View
6 CHANGES
@@ -1,3 +1,9 @@
+Chnages for 0.78 Mon Apr 30 19:45:00 BST 2012
+=================================================
+* Use POSIX::_exit() instead of exit() in
+ run_forked(). Reported by Mithun Ayachit
+ [RT 76901]
+
Changes for 0.76 Mon Jan 30 11:30:53 GMT 2012
=================================================
* Make the empty arg stripping the default again,
View
6 lib/IPC/Cmd.pm
@@ -17,7 +17,7 @@ BEGIN {
$INSTANCES $ALLOW_NULL_ARGS
];
- $VERSION = '0.76';
+ $VERSION = '0.78';
$VERBOSE = 0;
$DEBUG = 0;
$WARN = 1;
@@ -529,7 +529,7 @@ sub open3_run {
#
kill(-9, $$);
- exit 1;
+ POSIX::_exit 1;
}
if ($got_sig_child) {
@@ -1046,7 +1046,7 @@ sub run_forked {
$opts->{'child_END'}->();
}
- exit $child_exit_code;
+ POSIX::_exit $child_exit_code;
}
}

0 comments on commit 917b020

Please sign in to comment.
Something went wrong with that request. Please try again.