aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-tools/setconsole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c
index 59c83361c..771974ae3 100644
--- a/console-tools/setconsole.c
+++ b/console-tools/setconsole.c
@@ -41,6 +41,6 @@ int setconsole_main(int argc UNUSED_PARAM, char **argv)
41 device = DEV_CONSOLE; 41 device = DEV_CONSOLE;
42 } 42 }
43 43
44 xioctl(xopen(device, O_RDONLY), TIOCCONS, NULL); 44 xioctl(xopen(device, O_WRONLY), TIOCCONS, NULL);
45 return EXIT_SUCCESS; 45 return EXIT_SUCCESS;
46} 46}