Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/rpc.lockd/lockd.c
Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Lines | if (port_list != NULL) { | ||||
free(port_list); | free(port_list); | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* Note that it is NOT sensible to run this program from inetd - the | * Note that it is NOT sensible to run this program from inetd - the | ||||
* protocol assumes that it will run immediately at boot time. | * protocol assumes that it will run immediately at boot time. | ||||
*/ | */ | ||||
if ((foreground == 0) && daemon(0, debug_level > 0)) { | if ((foreground == 0) && daemon(0, 0) < 0) { | ||||
err(1, "cannot fork"); | err(1, "cannot fork"); | ||||
/* NOTREACHED */ | /* NOTREACHED */ | ||||
} | } | ||||
openlog("rpc.lockd", 0, LOG_DAEMON); | openlog("rpc.lockd", 0, LOG_DAEMON); | ||||
if (debug_level) | if (debug_level) | ||||
syslog(LOG_INFO, "Starting, debug level %d", debug_level); | syslog(LOG_INFO, "Starting, debug level %d", debug_level); | ||||
else | else | ||||
▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines |