aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 35694fbe3..90b07bf4b 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1574,13 +1574,12 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1574 /* yah, I know, *you* say it would never happen */ 1574 /* yah, I know, *you* say it would never happen */
1575 timeout = INT_MAX; 1575 timeout = INT_MAX;
1576 continue; /* back to main loop */ 1576 continue; /* back to main loop */
1577 } /* if select timed out */ 1577 } /* if poll timed out */
1578 1578
1579 /* select() didn't timeout, something happened */ 1579 /* poll() didn't timeout, something happened */
1580 1580
1581 /* Is it a signal? */ 1581 /* Is it a signal? */
1582 /* note: udhcp_sp_read checks poll result before reading */ 1582 switch (udhcp_sp_read()) {
1583 switch (udhcp_sp_read(pfds)) {
1584 case SIGUSR1: 1583 case SIGUSR1:
1585 client_config.first_secs = 0; /* make secs field count from 0 */ 1584 client_config.first_secs = 0; /* make secs field count from 0 */
1586 already_waited_sec = 0; 1585 already_waited_sec = 0;
@@ -1615,7 +1614,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1615 } 1614 }
1616 1615
1617 /* Is it a packet? */ 1616 /* Is it a packet? */
1618 if (listen_mode == LISTEN_NONE || !pfds[1].revents) 1617 if (!pfds[1].revents)
1619 continue; /* no */ 1618 continue; /* no */
1620 1619
1621 { 1620 {