Gracefully fail ipconfig when DHCP times out
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 20 Jun 2016 14:57:56 +0000 (10:57 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 20 Jun 2016 14:57:56 +0000 (10:57 -0400)
commit45acfb8828932368c16826b68a08bc0a594d5898
treec9cf83d590691fcd85885fdbe2453e87a98f5a6f
parent15c2e83045e217b46aef049f0baafc1bd3d546bc
Gracefully fail ipconfig when DHCP times out

For aborted syscalls, the errstr is "syscall aborted".

We don't need the 30 retries loop, since dhcpquery() already tries multiple
times internally (10 seconds worth of retries).  The way it was, you'd wait
for about 5 minutes if DHCP failed.

All stderr printfs ought to have a trailing \n, so we can see the output
more easily.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/apps/ipconfig/main.c