From: Roy Marples Date: Thu, 15 Jan 2009 15:11:13 +0000 (+0000) Subject: We should use close here. X-Git-Tag: v5.0.0~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94484b56247d288ae528f3640ff0d7bf69ba3e6b;p=thirdparty%2Fdhcpcd.git We should use close here. --- diff --git a/control.c b/control.c index e280e3f2..ddc51ef9 100644 --- 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;