diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-07-24 00:54:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-07-24 00:54:47 +0000 |
commit | c971356bce47316681a8d3748dba7d6aba972df9 (patch) | |
tree | 2674226e1de75d716ef595656055372c1a6f6f3c /usr.bin/newsyslog | |
parent | d033845511f43732de31efab741e879cf3385ddb (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.c | 6 |
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 |