summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2014-10-08 17:44:30 +0000
committermarkj <markj@FreeBSD.org>2014-10-08 17:44:30 +0000
commitae5107476ab582f60b16e243c2a8dd2fa4e985bc (patch)
tree76af30f73386bb672b00050aca52230f6ec75dae /usr.sbin/newsyslog
parentf9bb385dd32e3d35507f8753c8ec7425fc33c284 (diff)
downloadFreeBSD-src-ae5107476ab582f60b16e243c2a8dd2fa4e985bc.zip
FreeBSD-src-ae5107476ab582f60b16e243c2a8dd2fa4e985bc.tar.gz
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
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index ff9e937..b63234b 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -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,
OpenPOWER on IntegriCloud