mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Name waiting-for-enter to getty process
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
0d665f3773
commit
5ee1b7c322
1 file changed
+2
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user