mirror of
https://github.com/troglobit/finit.git
synced 2026-10-21 11:29:42 +00:00
run_getty2(): Minor fixes only, whitespace + cautionary _exit()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
19fcfcfef4
commit
675f82a6b9
1 file changed
+2
-2
+2
-2
@@ -285,12 +285,12 @@ pid_t run_getty2(char *tty, char *cmd, char *args[], int console)
|
||||
|
||||
(void)write(STDERR_FILENO, msg, sizeof(msg));
|
||||
while (read(STDIN_FILENO, &c, 1) == 1 && c != '\n')
|
||||
continue;
|
||||
continue;
|
||||
|
||||
if (fexist(SYNC_STOPPED))
|
||||
continue;
|
||||
|
||||
execv(cmd, args);
|
||||
_exit(execv(cmd, args));
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
Reference in new issue
Block a user