ifplugd: make -k send SIGINT, not SIGQUIT
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 28 Feb 2013 11:50:09 +0000 (12:50 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 28 Feb 2013 11:50:09 +0000 (12:50 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifplugd.c

index 86586f0..3cdc2c9 100644 (file)
@@ -556,7 +556,8 @@ int ifplugd_main(int argc UNUSED_PARAM, char **argv)
 
        if (opts & FLAG_KILL) {
                if (pid_from_pidfile > 0)
-                       kill(pid_from_pidfile, SIGQUIT);
+                       /* Upstream tool use SIGINT for -k */
+                       kill(pid_from_pidfile, SIGINT);
                return EXIT_SUCCESS;
        }