summaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-12-24 17:32:22 +0000
committerDenis Vlasenko2007-12-24 17:32:22 +0000
commit8e5b6f58a27d840cabf491634e956407d147ddb6 (patch)
tree86c65a2ce32290b19212c6d95600ae3a7eb046c0 /networking/udhcp/dhcpc.c
parent299c5c379e006ce2c3a39c42a323f297e4a4fb18 (diff)
downloadbusybox-8e5b6f58a27d840cabf491634e956407d147ddb6.zip
busybox-8e5b6f58a27d840cabf491634e956407d147ddb6.tar.gz
Makefile: change version to 1.10.0.svn
udhcpc: make UDP packet sending the same as raw sending in regards to error messages. Minor code size shrink. Total size grows due to added messages: text data bss dec hex filename 770312 683 7244 778239 bdfff busybox_old 770327 683 7244 778254 be00e busybox_unstripped
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 3de389f..d76a62c 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -454,7 +454,7 @@ int udhcpc_main(int argc, char **argv)
len = udhcp_recv_packet(&packet, sockfd);
else len = get_raw_packet(&packet, sockfd);
- if (len == -1 && errno != EINTR) {
+ if (len == -1) { /* error is severe, reopen socket */
DEBUG("error on read, %s, reopening socket", strerror(errno));
change_listen_mode(listen_mode); /* just close and reopen */
}