1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-21 02:12:28 +00:00
serenity/Ports/oksh/patches/disable_tty.patch
Manuel Palenzuela 8b0f1f816b Ports: Added an oksh port
Currently has some problems such as not killing jobs when (ctrl + c)
and depends on an implementation of sigsuspend.
2021-04-06 08:10:18 +02:00

13 lines
336 B
Diff

diff --git a/tty.c b/tty.c
index a72e5cd..96fa904 100644
--- a/tty.c
+++ b/tty.c
@@ -33,7 +33,7 @@ tty_init(int init_ttystate)
tty_close();
tty_devtty = 1;
- tfd = open("/dev/tty", O_RDWR, 0);
+ tfd = open("/dev/tty0", O_RDWR, 0);
if (tfd == -1) {
tty_devtty = 0;
warningf(false, "No controlling tty (open /dev/tty: %s)",