From 131f6ef0344ed5793a1ec887775dfafee6b2e47a Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Mon, 9 Jul 2012 07:37:10 +0000 Subject: [PATCH] We don't need to check the result of sending signal when -R option is specified. Submitted by: Ilya A. Arkhipov MFC after: 1 week --- usr.sbin/newsyslog/newsyslog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index 227ea004d9f5..67a363e55114 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -1972,7 +1972,8 @@ do_zipwork(struct zipwork_entry *zwork) else pgm_name++; - if (zwork->zw_swork != NULL && zwork->zw_swork->sw_pidok <= 0) { + if (zwork->zw_swork != NULL && zwork->zw_swork->run_cmd == 0 && + zwork->zw_swork->sw_pidok <= 0) { warnx( "log %s not compressed because daemon(s) not notified", zwork->zw_fname);