tty: Clear PID to be able to respawn it.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2013-06-06 18:19:27 +02:00
parent 65f0be8a55
commit f96fb855ce
+3
View File
@@ -178,6 +178,9 @@ int tty_respawn(pid_t pid)
if (!entry)
return 0;
/* Clear PID to be able to respawn it. */
entry->data.pid = 0;
if (!tty_enabled(&entry->data, runlevel))
tty_stop(&entry->data);
else