Name waiting-for-enter to getty process

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-07-21 20:43:23 +02:00
1 parent 0d665f3773
commit 5ee1b7c322
1 file changed
+2
+2
View File
@@ -250,6 +250,8 @@ pid_t run_getty(char *cmd, char *args[], char *tty, int console)
if (console) if (console)
prctl(PR_SET_NAME, "console", 0, 0, 0); prctl(PR_SET_NAME, "console", 0, 0, 0);
else
prctl(PR_SET_NAME, "finit-getty", 0, 0, 0);
sig_unblock(); sig_unblock();
setsid(); setsid();