Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131723883
D6727.id17306.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D6727.id17306.diff
View Options
Index: usr.sbin/newsyslog/newsyslog.c
===================================================================
--- usr.sbin/newsyslog/newsyslog.c
+++ usr.sbin/newsyslog/newsyslog.c
@@ -333,13 +333,15 @@
printf("Signal all daemon process(es)...\n");
SLIST_FOREACH(stmp, &swhead, sw_nextp)
do_sigwork(stmp);
- if (noaction)
- printf("\tsleep 10\n");
- else {
- if (verbose)
- printf("Pause 10 seconds to allow daemon(s)"
- " to close log file(s)\n");
- sleep(10);
+ if (!(rotatereq && nosignal)) {
+ if (noaction)
+ printf("\tsleep 10\n");
+ else {
+ if (verbose)
+ printf("Pause 10 seconds to allow daemon(s)"
+ " to close log file(s)\n");
+ sleep(10);
+ }
}
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 4:02 PM (19 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23583300
Default Alt Text
D6727.id17306.diff (722 B)
Attached To
Mode
D6727: Eliminate unnecessary sleep(10) in newsyslog when -R and -s are specified
Attached
Detach File
Event Timeline
Log In to Comment