Print out the signal number on exit in terminate(..) if WARMSTART is compiled
into rpcbind. The signal number can provide helpful diagnostic info. MFC after: 1 week Obtained from: Isilon OneFS Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
4d3b6bd5df
commit
fadafdfa69
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317154
@ -757,12 +757,13 @@ rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf,
|
|||||||
* Catch the signal and die
|
* Catch the signal and die
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
terminate(int dummy __unused)
|
terminate(int signum __unused)
|
||||||
{
|
{
|
||||||
close(rpcbindlockfd);
|
close(rpcbindlockfd);
|
||||||
#ifdef WARMSTART
|
#ifdef WARMSTART
|
||||||
syslog(LOG_ERR,
|
syslog(LOG_ERR,
|
||||||
"rpcbind terminating on signal. Restart with \"rpcbind -w\"");
|
"rpcbind terminating on signal %d. Restart with \"rpcbind -w\"",
|
||||||
|
signum);
|
||||||
write_warmstart(); /* Dump yourself */
|
write_warmstart(); /* Dump yourself */
|
||||||
#endif
|
#endif
|
||||||
exit(2);
|
exit(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user