Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 17:51:32 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317154 - head/usr.sbin/rpcbind
Message-ID:  <201704191751.v3JHpWBr021032@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Apr 19 17:51:32 2017
New Revision: 317154
URL: https://svnweb.freebsd.org/changeset/base/317154

Log:
  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

Modified:
  head/usr.sbin/rpcbind/rpcbind.c

Modified: head/usr.sbin/rpcbind/rpcbind.c
==============================================================================
--- head/usr.sbin/rpcbind/rpcbind.c	Wed Apr 19 17:32:32 2017	(r317153)
+++ head/usr.sbin/rpcbind/rpcbind.c	Wed Apr 19 17:51:32 2017	(r317154)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704191751.v3JHpWBr021032>