Remove a bogus fclose. Normally the "w" stream for /var/crash/bounds was

fclosed twice and this didn't seem to cause any problems, but when
/var/crash was on an an unwritable nfs-mounted partition, fclose(NULL)
caused a core dump.
This commit is contained in:
Bruce Evans 1995-07-11 17:03:44 +00:00
parent ca4b4242c9
commit 50e2fb8055

View File

@ -350,7 +350,6 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno));
(void)fprintf(fp, "%d\n", bounds + 1);
(void)fclose(fp);
}
(void)fclose(fp);
/* Create the core file. */
(void)snprintf(path, sizeof(path), "%s/vmcore.%d%s",