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 55f21c187..fd18325c1 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1576,13 +1576,12 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1576 /* yah, I know, *you* say it would never happen */ 1576 /* yah, I know, *you* say it would never happen */
1577 timeout = INT_MAX; 1577 timeout = INT_MAX;
1578 continue; /* back to main loop */ 1578 continue; /* back to main loop */
1579 } /* if select timed out */ 1579 } /* if poll timed out */
1580 1580
1581 /* select() didn't timeout, something happened */ 1581 /* poll() didn't timeout, something happened */
1582 1582
1583 /* Is it a signal? */ 1583 /* Is it a signal? */
1584 /* note: udhcp_sp_read checks poll result before reading */ 1584 switch (udhcp_sp_read()) {
1585 switch (udhcp_sp_read(pfds)) {
1586 case SIGUSR1: 1585 case SIGUSR1:
1587 client_config.first_secs = 0; /* make secs field count from 0 */ 1586 client_config.first_secs = 0; /* make secs field count from 0 */
1588 already_waited_sec = 0; 1587 already_waited_sec = 0;
@@ -1617,7 +1616,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1617 } 1616 }
1618 1617
1619 /* Is it a packet? */ 1618 /* Is it a packet? */
1620 if (listen_mode == LISTEN_NONE || !pfds[1].revents) 1619 if (!pfds[1].revents)
1621 continue; /* no */ 1620 continue; /* no */
1622 1621
1623 { 1622 {