Diff of /trunk/mkinitrd-magellan/busybox/console-tools/openvt.c
Parent Directory | Revision Log | Patch
revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC | revision 984 by niro, Sun May 30 11:32:42 2010 UTC | |
---|---|---|
# | Line 61 static int get_vt_fd(void) | Line 61 static int get_vt_fd(void) |
61 | for (fd = 0; fd < 3; fd++) | for (fd = 0; fd < 3; fd++) |
62 | if (!not_vt_fd(fd)) | if (!not_vt_fd(fd)) |
63 | return fd; | return fd; |
64 | /* _only_ O_NONBLOCK: ask for neither read nor write perms */ | fd = open(DEV_CONSOLE, O_RDONLY | O_NONBLOCK); |
/*FIXME: use? device_open(DEV_CONSOLE,0); */ | ||
fd = open(DEV_CONSOLE, O_NONBLOCK); | ||
65 | if (fd >= 0 && !not_vt_fd(fd)) | if (fd >= 0 && !not_vt_fd(fd)) |
66 | return fd; | return fd; |
67 | bb_error_msg_and_die("can't find open VT"); | bb_error_msg_and_die("can't find open VT"); |
|