Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2014 17:44:30 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272763 - head/usr.sbin/newsyslog
Message-ID:  <201410081744.s98HiV4U017418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Oct  8 17:44:30 2014
New Revision: 272763
URL: https://svnweb.freebsd.org/changeset/base/272763

Log:
  If we fail to send a signal after rotation, print the pidfile from which
  the corresponding PID was obtained.
  
  PR:		194143
  Submitted by:	Lyndon Nerenberg <lyndon@orthanc.ca>
  MFC after:	1 week

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

Modified: head/usr.sbin/newsyslog/newsyslog.c
==============================================================================
--- head/usr.sbin/newsyslog/newsyslog.c	Wed Oct  8 17:40:58 2014	(r272762)
+++ head/usr.sbin/newsyslog/newsyslog.c	Wed Oct  8 17:44:30 2014	(r272763)
@@ -1968,8 +1968,8 @@ do_sigwork(struct sigwork_entry *swork)
 		 */
 		if (errno != ESRCH)
 			swork->sw_pidok = 0;
-		warn("can't notify %s, pid %d", swork->sw_pidtype,
-		    (int)swork->sw_pid);
+		warn("can't notify %s, pid %d = %s", swork->sw_pidtype,
+		    (int)swork->sw_pid, swork->sw_fname);
 	} else {
 		if (verbose)
 			printf("Notified %s pid %d = %s\n", swork->sw_pidtype,



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