]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
-g must go via the command socket as it's no longer SIGUSR1
authorRoy Marples <roy@marples.name>
Mon, 21 Dec 2015 11:07:04 +0000 (11:07 +0000)
committerRoy Marples <roy@marples.name>
Mon, 21 Dec 2015 11:07:04 +0000 (11:07 +0000)
dhcpcd.c

index 43bfb9b49fa0018619acbb7f5e1ff4af57e51133..6ba4ace9bac44fbc69192a0edc49e44a5018dbdc 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1482,16 +1482,12 @@ main(int argc, char **argv)
                case 'f':
                        ctx.cffile = optarg;
                        break;
-#ifdef USE_SIGNALS
-               case 'g':
-                       sig = SIGUSR1;
-                       siga = "USR1";
-                       break;
                case 'j':
                        ctx.logfile = strdup(optarg);
                        logger_close(&ctx);
                        logger_open(&ctx);
                        break;
+#ifdef USE_SIGNALS
                case 'k':
                        sig = SIGALRM;
                        siga = "ARLM";
@@ -1500,6 +1496,7 @@ main(int argc, char **argv)
                        sig = SIGHUP;
                        siga = "HUP";
                        break;
+               case 'g':
                case 'p':
                        /* Force going via command socket as we're
                         * out of user definable signals. */