mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
tty: Clear PID to be able to respawn it.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
65f0be8a55
commit
f96fb855ce
1 file changed
+3
@@ -178,6 +178,9 @@ int tty_respawn(pid_t pid)
|
|||||||
if (!entry)
|
if (!entry)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* Clear PID to be able to respawn it. */
|
||||||
|
entry->data.pid = 0;
|
||||||
|
|
||||||
if (!tty_enabled(&entry->data, runlevel))
|
if (!tty_enabled(&entry->data, runlevel))
|
||||||
tty_stop(&entry->data);
|
tty_stop(&entry->data);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user