svn commit: r318608 - stable/10/usr.sbin/rpcbind
Ngie Cooper
ngie at FreeBSD.org
Mon May 22 06:04:21 UTC 2017
Author: ngie
Date: Mon May 22 06:04:20 2017
New Revision: 318608
URL: https://svnweb.freebsd.org/changeset/base/318608
Log:
MFC r317154:
Print out the signal number on exit in terminate(..) if WARMSTART is compiled
into rpcbind.
The signal number can provide helpful diagnostic info.
Obtained from: Isilon OneFS
Modified:
stable/10/usr.sbin/rpcbind/rpcbind.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/rpcbind/rpcbind.c
==============================================================================
--- stable/10/usr.sbin/rpcbind/rpcbind.c Mon May 22 06:03:51 2017 (r318607)
+++ stable/10/usr.sbin/rpcbind/rpcbind.c Mon May 22 06:04:20 2017 (r318608)
@@ -755,12 +755,13 @@ rbllist_add(rpcprog_t prog, rpcvers_t ve
* Catch the signal and die
*/
static void
-terminate(int dummy __unused)
+terminate(int signum __unused)
{
close(rpcbindlockfd);
#ifdef WARMSTART
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 */
#endif
exit(2);
More information about the svn-src-all
mailing list