Date: Mon, 26 Oct 2015 07:03:44 GMT From: def@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r293061 - soc2013/def/crashdump-head/sbin/savecore Message-ID: <201510260703.t9Q73iEF086031@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510260703.t9Q73iEF086031>