diff options
Diffstat (limited to 'libbb/get_console.c')
-rw-r--r-- | libbb/get_console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/get_console.c b/libbb/get_console.c index d042afa2b..ad56e740f 100644 --- a/libbb/get_console.c +++ b/libbb/get_console.c | |||
@@ -38,7 +38,7 @@ static int open_a_console(const char *fnam) | |||
38 | * if someone else used X (which does a chown on /dev/console). | 38 | * if someone else used X (which does a chown on /dev/console). |
39 | */ | 39 | */ |
40 | 40 | ||
41 | int FAST_FUNC get_console_fd(void) | 41 | int FAST_FUNC get_console_fd_or_die(void) |
42 | { | 42 | { |
43 | static const char *const console_names[] = { | 43 | static const char *const console_names[] = { |
44 | DEV_CONSOLE, CURRENT_VC, CURRENT_TTY | 44 | DEV_CONSOLE, CURRENT_VC, CURRENT_TTY |
@@ -65,8 +65,8 @@ int FAST_FUNC get_console_fd(void) | |||
65 | } | 65 | } |
66 | } | 66 | } |
67 | 67 | ||
68 | bb_error_msg("can't open console"); | 68 | bb_error_msg_and_die("can't open console"); |
69 | return fd; /* total failure */ | 69 | /*return fd; - total failure */ |
70 | } | 70 | } |
71 | 71 | ||
72 | /* From <linux/vt.h> */ | 72 | /* From <linux/vt.h> */ |