summaryrefslogtreecommitdiff
path: root/usr.bin/newsyslog
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-07-24 00:54:47 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-07-24 00:54:47 +0000
commitc971356bce47316681a8d3748dba7d6aba972df9 (patch)
tree2674226e1de75d716ef595656055372c1a6f6f3c /usr.bin/newsyslog
parentd033845511f43732de31efab741e879cf3385ddb (diff)
Include pid file name in error message for a failed kill(). Prompted by
PR 6288. ok deraadt
Diffstat (limited to 'usr.bin/newsyslog')
-rw-r--r--usr.bin/newsyslog/newsyslog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c
index d1ef7024186..f159361cb4e 100644
--- a/usr.bin/newsyslog/newsyslog.c
+++ b/usr.bin/newsyslog/newsyslog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newsyslog.c,v 1.87 2010/03/20 15:15:45 schwarze Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.88 2010/07/24 00:54:46 nicm Exp $ */
/*
* Copyright (c) 1999, 2002, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -407,8 +407,8 @@ send_signal(char *pidfile, int signal)
else if (noaction)
(void)printf("kill -%s %ld\n", sys_signame[signal], (long)pid);
else if (kill(pid, signal))
- warnx("warning - could not send SIG%s to daemon",
- sys_signame[signal]);
+ warnx("warning - could not send SIG%s to PID from pid file %s",
+ sys_signame[signal], pidfile);
}
void