]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should use close here.
authorRoy Marples <roy@marples.name>
Thu, 15 Jan 2009 15:11:13 +0000 (15:11 +0000)
committerRoy Marples <roy@marples.name>
Thu, 15 Jan 2009 15:11:13 +0000 (15:11 +0000)
control.c

index e280e3f21e291fa6f4624ac6e128ac1473213093..ddc51ef9825de21a2eadcf539de8b57054b9a9bf 100644 (file)
--- a/control.c
+++ b/control.c
@@ -54,7 +54,7 @@ remove_control_data(void *arg)
 
        for (l = fds; l != NULL; l = l->next) {
                if (l == arg) {
-                       shutdown(l->fd, SHUT_RDWR);
+                       close(l->fd);
                        delete_event(l->fd);
                        if (last == NULL)
                                fds = l->next;