projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a34768b
)
Don't kill processes unless we're sure there's actually a process to kill
author
Wouter Verhelst
<w@uter.be>
Sun, 10 Jun 2012 20:15:11 +0000
(22:15 +0200)
committer
Wouter Verhelst
<w@uter.be>
Sun, 10 Jun 2012 20:15:11 +0000
(22:15 +0200)
simple_test
patch
|
blob
|
history
diff --git
a/simple_test
b/simple_test
index
88adb6d
..
b90798b
100755
(executable)
--- a/
simple_test
+++ b/
simple_test
@@
-217,7
+217,10
@@
if [ -f ${pidfile} ]
then
kill `cat ${pidfile}`
else
- kill $PID
+ if [ ! -z "$PID" ]
+ then
+ kill $PID
+ fi
fi
if [ -z "$2" ]
then