From 1c0909633d2b4e103358034353f0b853cf2cc50f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 9 Jun 2011 04:57:02 +0000 Subject: there is no need to close files when the titanic is going down. --- sbin/modload/modload.c | 8 +------- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3