summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2014-10-23 18:50:44 +0000
committermarkj <markj@FreeBSD.org>2014-10-23 18:50:44 +0000
commit8a1641d7862ee12fd3dd4c98e7057eacc0bfbdb6 (patch)
tree2320a81dfe1974b3d7b4ebed706d02b1ef31e380
parent5cd9154e6b001d9a51411bda3dee8ccb089a7a82 (diff)
downloadFreeBSD-src-8a1641d7862ee12fd3dd4c98e7057eacc0bfbdb6.zip
FreeBSD-src-8a1641d7862ee12fd3dd4c98e7057eacc0bfbdb6.tar.gz
MFC r272763:
If we fail to send a signal after rotation, print the pidfile from which the corresponding PID was obtained. PR: 194143
-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