diff options
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 55f21c1..fd18325 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -1576,13 +1576,12 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) /* yah, I know, *you* say it would never happen */ timeout = INT_MAX; continue; /* back to main loop */ - } /* if select timed out */ + } /* if poll timed out */ - /* select() didn't timeout, something happened */ + /* poll() didn't timeout, something happened */ /* Is it a signal? */ - /* note: udhcp_sp_read checks poll result before reading */ - switch (udhcp_sp_read(pfds)) { + switch (udhcp_sp_read()) { case SIGUSR1: client_config.first_secs = 0; /* make secs field count from 0 */ already_waited_sec = 0; @@ -1617,7 +1616,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) } /* Is it a packet? */ - if (listen_mode == LISTEN_NONE || !pfds[1].revents) + if (!pfds[1].revents) continue; /* no */ { |