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 <lyn...@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,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to