Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148031467
D3229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
804 B
Referenced Files
None
Subscribers
None
D3229.diff
View Options
Index: head/sbin/savecore/savecore.c
===================================================================
--- head/sbin/savecore/savecore.c
+++ head/sbin/savecore/savecore.c
@@ -836,15 +836,18 @@
/* Emit minimal output. */
if (nfound == 0) {
if (checkfor) {
- printf("No dump exists\n");
+ if (verbose)
+ printf("No dump exists\n");
exit(1);
}
- syslog(LOG_WARNING, "no dumps found");
- }
- else if (nsaved == 0) {
- if (nerr != 0)
- syslog(LOG_WARNING, "unsaved dumps found but not saved");
- else
+ if (verbose)
+ syslog(LOG_WARNING, "no dumps found");
+ } else if (nsaved == 0) {
+ if (nerr != 0) {
+ if (verbose)
+ syslog(LOG_WARNING, "unsaved dumps found but not saved");
+ exit(1);
+ } else if (verbose)
syslog(LOG_WARNING, "no unsaved dumps found");
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 7:10 AM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29759435
Default Alt Text
D3229.diff (804 B)
Attached To
Mode
D3229: savecore(8): Be quiet unless the user asks for verbose
Attached
Detach File
Event Timeline
Log In to Comment