diff options
author | obrien <obrien@FreeBSD.org> | 1999-06-25 22:28:34 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-06-25 22:28:34 +0000 |
commit | 2d6635330fd94b1df326d5dd3d1a42e54b5739b0 (patch) | |
tree | e28378637b6253355b19490756155911be5e39b8 /contrib/isc-dhcp | |
parent | 80148aaf3356c2ae817b9d31e704afbf2b6421c1 (diff) | |
download | FreeBSD-src-2d6635330fd94b1df326d5dd3d1a42e54b5739b0.zip FreeBSD-src-2d6635330fd94b1df326d5dd3d1a42e54b5739b0.tar.gz |
Fix -1 (onetry) fails, exit(2) rather than exit(1) so an error from this
option is distingishable from other errors.
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 a4f0b35..9ca6e25 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"); |