summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-09 04:57:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-09 04:57:02 +0000
commit1c0909633d2b4e103358034353f0b853cf2cc50f (patch)
treea6fc6ac38e695ef717c93ed87d9f6d10cf8165ce
parentc8dbea30fae8127e6e60637f53c5c0aaf21710a8 (diff)
there is no need to close files when the titanic is going down.
-rw-r--r--sbin/modload/modload.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c
index 5461a6fa861..a5803f8cb74 100644
--- a/sbin/modload/modload.c
+++ b/sbin/modload/modload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modload.c,v 1.43 2007/11/25 19:21:37 mikeb Exp $ */
+/* $OpenBSD: modload.c,v 1.44 2011/06/09 04:57:01 deraadt Exp $ */
/* $NetBSD: modload.c,v 1.30 2001/11/08 15:33:15 christos Exp $ */
/*
@@ -129,12 +129,6 @@ cleanup(void)
warn("can't release slot 0x%08x memory", resrv.slot);
}
- if (fileopen & DEV_OPEN)
- close(devfd);
-
- if (fileopen & MOD_OPEN)
- close(modfd);
-
if (fileopen & OUTFILE_CREAT)
unlink(out);
}