diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1999-06-25 22:28:34 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1999-06-25 22:28:34 +0000 |
commit | 5b4742f188e51c83d5027955a817496cadd381ce (patch) | |
tree | 855b78344d9137a4b6b1aa112f46051256c9662a /contrib/isc-dhcp | |
parent | ad0caac41fc114c80495efda0aa585165e77c8a5 (diff) | |
download | src-5b4742f188e51c83d5027955a817496cadd381ce.tar.gz src-5b4742f188e51c83d5027955a817496cadd381ce.zip |
Fix -1 (onetry) fails, exit(2) rather than exit(1) so an error from this
option is distingishable from other errors.
Notes
Notes:
svn path=/head/; revision=48222
Diffstat (limited to 'contrib/isc-dhcp')
-rw-r--r-- | contrib/isc-dhcp/client/dhclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/isc-dhcp/client/dhclient.c b/contrib/isc-dhcp/client/dhclient.c index a4f0b356ceb9..9ca6e25fb7ca 100644 --- a/contrib/isc-dhcp/client/dhclient.c +++ b/contrib/isc-dhcp/client/dhclient.c @@ -295,8 +295,8 @@ static void usage (appname) note (url); note (""); - warn ("Usage: %s [-c] [-p <port>] [-lf lease-file]", appname); - error (" [-pf pidfile] [-1] [interface]"); + warn ("Usage: %s [-D] [-d] [-p <port>] [-lf lease-file]", appname); + error (" [-pf pidfile] [-q] [-1] [interface]"); } void cleanup () @@ -1181,7 +1181,7 @@ void state_panic (ipp) tell the shell script that we failed to allocate an address, and try again later. */ if (onetry) { - exit(1); + exit(2); note ("Unable to obtain a lease on first try - exiting.\n"); } note ("No working leases in persistent database - sleeping.\n"); |