Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/rpcbind/rpcb_svc_com.c
Show First 20 Lines • Show All 1,130 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
switch (poll_ret = poll(pollfds, nfds, 30 * 1000)) { | switch (poll_ret = poll(pollfds, nfds, 30 * 1000)) { | ||||
case -1: | case -1: | ||||
/* | /* | ||||
* We ignore all errors, continuing with the assumption | * We ignore all errors, continuing with the assumption | ||||
* that it was set by the signal handlers (or any | * that it was set by the signal handlers (or any | ||||
* other outside event) and not caused by poll(). | * other outside event) and not caused by poll(). | ||||
*/ | */ | ||||
if (doterminate != 0) { | |||||
close(rpcbindlockfd); | |||||
#ifdef WARMSTART | |||||
syslog(LOG_ERR, | |||||
"rpcbind terminating on signal %d. Restart with \"rpcbind -w\"", | |||||
(int)doterminate); | |||||
write_warmstart(); /* Dump yourself */ | |||||
#endif | |||||
exit(2); | |||||
} | |||||
case 0: | case 0: | ||||
cleanfds = svc_fdset; | cleanfds = svc_fdset; | ||||
__svc_clean_idle(&cleanfds, 30, FALSE); | __svc_clean_idle(&cleanfds, 30, FALSE); | ||||
continue; | continue; | ||||
default: | default: | ||||
#ifdef SVC_RUN_DEBUG | #ifdef SVC_RUN_DEBUG | ||||
if (debugging) { | if (debugging) { | ||||
fprintf(stderr, "poll returned read fds < "); | fprintf(stderr, "poll returned read fds < "); | ||||
▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines |