]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- check own pid, not parents one
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 2 Oct 2003 18:42:33 +0000 (18:42 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 2 Oct 2003 18:42:33 +0000 (18:42 +0000)
svn-id: @1399

rc.d/init.d/functions

index 57a6cc0668b50f60392d285db50cafe1db69ea6b..5eb88dfc4bb16a66c70c9f0e946b651fc5656522 100644 (file)
@@ -357,7 +357,7 @@ killproc()
        [ -z "$pid" ] && pid=$(pidofproc "$base")
 
        # Kill it.
-       if [ -n "$pid" -a "$pid" != "$PPID" ] && checkpid $pid 2>&1 ; then
+       if [ -n "$pid" -a "$pid" != "$$" ] && checkpid $pid 2>&1 ; then
                if [ "$notset" = "1" ] ; then
                        if checkpid $pid 2>&1; then
                                # TERM first, then KILL if not dead
This page took 0.233818 seconds and 4 git commands to generate.