]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't stop dev management on fork
authorRoy Marples <roy@marples.name>
Fri, 27 Sep 2013 06:15:32 +0000 (06:15 +0000)
committerRoy Marples <roy@marples.name>
Fri, 27 Sep 2013 06:15:32 +0000 (06:15 +0000)
dhcpcd.c

index da81ec452723c073b8dfce9f41f23499f628fcb5..066d438f41ff019a84da2c846f2580e06bae6b92 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -159,7 +159,8 @@ cleanup(void)
        free(ifdv);
 #endif
 
-       dev_stop();
+       if (!(options & DHCPCD_FORKED))
+               dev_stop();
        if (linkfd != -1)
                close(linkfd);
        if (pidfd > -1) {