diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2012-07-09 07:37:10 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2012-07-09 07:37:10 +0000 |
commit | 131f6ef0344ed5793a1ec887775dfafee6b2e47a (patch) | |
tree | ebe3606cdf5dc56824d91c5343cb06e21c92f751 /usr.sbin/newsyslog | |
parent | 0a6b6951b2c2d3d72846da1e3a4bfcd7834eb2f7 (diff) | |
download | src-131f6ef0344ed5793a1ec887775dfafee6b2e47a.tar.gz src-131f6ef0344ed5793a1ec887775dfafee6b2e47a.zip |
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
Notes
Notes:
svn path=/head/; revision=238281
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |