~mdw
/
disorder-toys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
disorder-ondemand.in: Guard against `$PID' getting lost halfway through.
[disorder-toys]
/
disorder-ondemand.in
diff --git
a/disorder-ondemand.in
b/disorder-ondemand.in
index
a517e7b
..
98e39c2
100755
(executable)
--- a/
disorder-ondemand.in
+++ b/
disorder-ondemand.in
@@
-49,7
+49,7
@@
$SIG{CHLD} = sub {
};
$SIG{TERM} = $SIG{INT} = sub {
-
kill "TERM", $PID if defined $PID
;
+
eval { my $pid = $PID; kill "TERM", $pid if defined $pid; }
;
exit 0;
};