Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/rpcbind/rpcbind.c
Show First 20 Lines • Show All 757 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Catch the signal and die | * Catch the signal and die | ||||
*/ | */ | ||||
static void | static void | ||||
terminate(int signum __unused) | terminate(int signum __unused) | ||||
{ | { | ||||
close(rpcbindlockfd); | close(rpcbindlockfd); | ||||
#ifdef WARMSTART | #ifdef WARMSTART | ||||
/* | |||||
* It is not async-signal safe to use syslog, vfprintf, or FILE | |||||
* objects. | |||||
*/ | |||||
#if 0 | |||||
syslog(LOG_ERR, | syslog(LOG_ERR, | ||||
"rpcbind terminating on signal %d. Restart with \"rpcbind -w\"", | "rpcbind terminating on signal %d. Restart with \"rpcbind -w\"", | ||||
signum); | signum); | ||||
write_warmstart(); /* Dump yourself */ | write_warmstart(); /* Dump yourself */ | ||||
#endif | #endif | ||||
exit(2); | #endif | ||||
_exit(2); | |||||
} | } | ||||
void | void | ||||
rpcbind_abort(void) | rpcbind_abort(void) | ||||
{ | { | ||||
#ifdef WARMSTART | #ifdef WARMSTART | ||||
write_warmstart(); /* Dump yourself */ | write_warmstart(); /* Dump yourself */ | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |