Displaying 1 result from an estimated 1 matches for "888fdeb".
2010 Aug 24
0
[PATCH]: Exiting -1 if dhcp client failed
...nfo/?p=zodiac-pkg%2Fklibc.git;a=commitdiff_plain;h=6c4c52e6f64412fce844d0198643ccecc641f1b5
Exiting -1 if ipconfig timeout
When timeouting while getting up a dhclient answer, let's returning -1
instead of 0
---
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index f00041b..888fdeb 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
-334,6 +334,7 @@ static int loop(void)
int nr = 0;
struct timeval now, prev;
time_t start;
+ int return_code=0;
pkt_fd = packet_open();
if (pkt_fd == -1) {
-396,6 +397,7 @@ static int loop(void)...