mirror of
https://github.com/sheumann/hush.git
synced 2025-01-11 08:29:54 +00:00
udhcpc[6]: show select timeout in log
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
02112d8ae3
commit
085b293338
@ -1066,8 +1066,8 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
|
||||
retval = 0;
|
||||
/* If we already timed out, fall through with retval = 0, else... */
|
||||
if ((int)tv.tv_sec > 0) {
|
||||
log1("Waiting on select %u seconds", (int)tv.tv_sec);
|
||||
timestamp_before_wait = (unsigned)monotonic_sec();
|
||||
log1("Waiting on select...");
|
||||
retval = select(max_fd + 1, &rfds, NULL, NULL, &tv);
|
||||
if (retval < 0) {
|
||||
/* EINTR? A signal was caught, don't panic */
|
||||
|
@ -1362,8 +1362,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
||||
retval = 0;
|
||||
/* If we already timed out, fall through with retval = 0, else... */
|
||||
if ((int)tv.tv_sec > 0) {
|
||||
log1("Waiting on select %u seconds", (int)tv.tv_sec);
|
||||
timestamp_before_wait = (unsigned)monotonic_sec();
|
||||
log1("Waiting on select...");
|
||||
retval = select(max_fd + 1, &rfds, NULL, NULL, &tv);
|
||||
if (retval < 0) {
|
||||
/* EINTR? A signal was caught, don't panic */
|
||||
|
Loading…
x
Reference in New Issue
Block a user