summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJim Huang <jserv@kaffe.org>2009-02-01 09:19:20 -0800
committerEric Anholt <eric@anholt.net>2009-02-01 09:19:20 -0800
commit66a6fbbfa3a1fd0d91fe61cf2ab299d0e3df46b9 (patch)
tree704399027326ac0bf2bdb8938982eecfec10c548 /hw
parent0055fe66d5f73742cafab868ccdb7a6f36ea1dd5 (diff)
kdrive: Move a close() to the right place so we don't close(-1) normally.
Bug #18343
Diffstat (limited to 'hw')
-rw-r--r--hw/kdrive/linux/linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kdrive/linux/linux.c b/hw/kdrive/linux/linux.c
index 258dc7b81..79f3fbd41 100644
--- a/hw/kdrive/linux/linux.c
+++ b/hw/kdrive/linux/linux.c
@@ -91,8 +91,8 @@ LinuxInit (void)
{
FatalError("xf86OpenConsole: Cannot find a free VT\n");
}
+ close(fd);
}
- close(fd);
sprintf(vtname,"/dev/tty%d",vtno); /* /dev/tty1-64 */