Mercurial > hg > dhcpcd
changeset 1216:ab2570698056 draft
Ensure we continue after we fail to send a packet.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 19 Feb 2009 19:50:04 +0000 |
| parents | c1dc02273e9c |
| children | 89e0575ff4c8 |
| files | client.c |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client.c Wed Feb 04 07:32:53 2009 +0000 +++ b/client.c Thu Feb 19 19:50:04 2009 +0000 @@ -685,7 +685,9 @@ if (r == -1) { state->state = STATE_INIT; timerclear(&state->timeout); - timerclear(&state->stop); + /* We need to set a timeout so we fall through gracefully */ + state->stop.tv_sec = 1; + state->stop.tv_usec = 0; do_socket(state, SOCKET_CLOSED); } return r;
