diff options
author | Paul Cercueil <paul@crapouillou.net> | 2020-09-22 05:03:51 +0300 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2020-09-22 05:03:51 +0300 |
commit | 51a8437b4a98825ae50718daf604acb7d3baaa24 (patch) | |
tree | bbfadac4a16264d0135388b76c6dfc00d977ea5f | |
parent | c9678ef3a9a7955c8c009bda58f82a0b8f516857 (diff) | |
download | sdl-51a8437b4a98825ae50718daf604acb7d3baaa24.tar.gz |
video/fbcon: Fix keyboard input when not launched from
shell
When not started from a shell, SDL was segfaulting while trying to
detach the process from the controlling terminal.
However, it doesn't make any sense for an SDL app to detach from
its controlling terminal, unless the app is a daemon. Since we
have never seen a SDL app detach from its controlling terminal,
even when starting it from a shell, the feature was probably broken.
Thus, the code has been dropped.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
src/video/fbcon/SDL_fbevents.c | 11 -----------
1 file changed, 11 deletions(-)
-rw-r--r-- | src/video/fbcon/SDL_fbevents.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/video/fbcon/SDL_fbevents.c b/src/video/fbcon/SDL_fbevents.c index 5e369a4a8..549a7ad81 100644 --- a/src/video/fbcon/SDL_fbevents.c +++ b/src/video/fbcon/SDL_fbevents.c @@ -270,17 +270,6 @@ int FB_OpenKeyboard(_THIS) fprintf(stderr, "vtpath = %s, fd = %d\n", vtpath, keyboard_fd); #endif /* DEBUG_KEYBOARD */ - - /* This needs to be our controlling tty - so that the kernel ioctl() calls work - */ - if ( keyboard_fd >= 0 ) { - tty0_fd = open("/dev/tty", O_RDWR, 0); - if ( tty0_fd >= 0 ) { - ioctl(tty0_fd, TIOCNOTTY, 0); - close(tty0_fd); - } - } } } if ( keyboard_fd < 0 ) { |