socsvn commit: r293061 - soc2013/def/crashdump-head/sbin/savecore
def at FreeBSD.org
def at FreeBSD.org
Mon Oct 26 07:03:45 UTC 2015
Author: def
Date: Mon Oct 26 07:03:43 2015
New Revision: 293061
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=293061
Log:
Close all descriptors due to a fail.
Modified:
soc2013/def/crashdump-head/sbin/savecore/savecore.c
Modified: soc2013/def/crashdump-head/sbin/savecore/savecore.c
==============================================================================
--- soc2013/def/crashdump-head/sbin/savecore/savecore.c Mon Oct 26 04:11:33 2015 (r293060)
+++ soc2013/def/crashdump-head/sbin/savecore/savecore.c Mon Oct 26 07:03:43 2015 (r293061)
@@ -712,7 +712,7 @@
if (dumpkey == NULL) {
syslog(LOG_ERR, "Unable to allocate kernel dump key.");
nerr++;
- goto closefd;
+ goto closeall;
}
error = read(fd, dumpkey, dumpkeysize);
More information about the svn-soc-all
mailing list