From f96fb855cebaa470c149a0b12c6ec5339bdd1e65 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 6 Jun 2013 01:37:24 +0200 Subject: [PATCH] tty: Clear PID to be able to respawn it. Signed-off-by: Joachim Nilsson --- tty.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tty.c b/tty.c index 72fb0765..dafea025 100644 --- a/tty.c +++ b/tty.c @@ -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