Steal controlling TTY on fallback console to enable job control.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-01-18 22:25:04 +01:00
1 parent 9f5172b0d1
commit dea3ae857b
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -593,6 +593,11 @@ pid_t run_getty(char *cmd, char *args[], int console)
sig_unblock();
setsid();
if (ioctl(STDIN_FILENO, TIOCSCTTY, 1) < 0)
_pe("Failed TIOCSCTTY");
while (!fexist(SYNC_SHUTDOWN)) {
static const char msg[] = "\nPlease press Enter to activate this console.";