From: nicm Date: Sat, 24 Jul 2010 00:54:46 +0000 (+0000) Subject: Include pid file name in error message for a failed kill(). Prompted by X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0433a101854be7b12406066b353e6e487d4eb09d;p=openbsd Include pid file name in error message for a failed kill(). Prompted by PR 6288. ok deraadt --- 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 @@ -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