diff options
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index 35c99e89c..289df66ee 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -1375,13 +1375,12 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1375 | /* yah, I know, *you* say it would never happen */ | 1375 | /* yah, I know, *you* say it would never happen */ |
1376 | timeout = INT_MAX; | 1376 | timeout = INT_MAX; |
1377 | continue; /* back to main loop */ | 1377 | continue; /* back to main loop */ |
1378 | } /* if select timed out */ | 1378 | } /* if poll timed out */ |
1379 | 1379 | ||
1380 | /* select() didn't timeout, something happened */ | 1380 | /* poll() didn't timeout, something happened */ |
1381 | 1381 | ||
1382 | /* Is it a signal? */ | 1382 | /* Is it a signal? */ |
1383 | /* note: udhcp_sp_read checks poll result before reading */ | 1383 | switch (udhcp_sp_read()) { |
1384 | switch (udhcp_sp_read(pfds)) { | ||
1385 | case SIGUSR1: | 1384 | case SIGUSR1: |
1386 | client_config.first_secs = 0; /* make secs field count from 0 */ | 1385 | client_config.first_secs = 0; /* make secs field count from 0 */ |
1387 | already_waited_sec = 0; | 1386 | already_waited_sec = 0; |
@@ -1416,7 +1415,7 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1416 | } | 1415 | } |
1417 | 1416 | ||
1418 | /* Is it a packet? */ | 1417 | /* Is it a packet? */ |
1419 | if (listen_mode == LISTEN_NONE || !pfds[1].revents) | 1418 | if (!pfds[1].revents) |
1420 | continue; /* no */ | 1419 | continue; /* no */ |
1421 | 1420 | ||
1422 | { | 1421 | { |