Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Check whether a core dump exists before trying to s...
details: https://anonhg.NetBSD.org/src/rev/7d60d6dbedd2
branches: trunk
changeset: 747435:7d60d6dbedd2
user: apb <apb%NetBSD.org@localhost>
date: Mon Sep 14 17:34:56 2009 +0000
description:
Check whether a core dump exists before trying to save it. This should
prevent /etc/rc from thinking that /etc/rc.d/savecore failed.
diffstat:
etc/rc.d/savecore | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r b0cf472b408f -r 7d60d6dbedd2 etc/rc.d/savecore
--- a/etc/rc.d/savecore Mon Sep 14 17:24:20 2009 +0000
+++ b/etc/rc.d/savecore Mon Sep 14 17:34:56 2009 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: savecore,v 1.7 2004/08/13 18:08:03 mycroft Exp $
+# $NetBSD: savecore,v 1.8 2009/09/14 17:34:56 apb Exp $
#
# PROVIDE: savecore
@@ -21,7 +21,9 @@
#
if [ -d "${savecore_dir}/." ]; then
echo "Checking for core dump..."
- savecore $rc_flags "${savecore_dir}"
+ if savecore -n; then
+ savecore $rc_flags "${savecore_dir}"
+ fi
else
warn "No crash dump directory; savecore not run."
fi
Home |
Main Index |
Thread Index |
Old Index