svn commit: r318607 - stable/11/usr.sbin/rpcbind
Ngie Cooper
ngie at FreeBSD.org
Mon May 22 06:03:52 UTC 2017
Author: ngie
Date: Mon May 22 06:03:51 2017
New Revision: 318607
URL: https://svnweb.freebsd.org/changeset/base/318607
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/11/usr.sbin/rpcbind/rpcbind.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/rpcbind/rpcbind.c
==============================================================================
--- stable/11/usr.sbin/rpcbind/rpcbind.c Mon May 22 03:01:35 2017 (r318606)
+++ stable/11/usr.sbin/rpcbind/rpcbind.c Mon May 22 06:03:51 2017 (r318607)
@@ -757,12 +757,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-stable-11
mailing list