kernel - Unset TS_ZOMBIE when pty is re-opened
authorSamuel J. Greear <sjg@thesjg.com>
Mon, 2 Aug 2010 13:09:27 +0000 (13:09 +0000)
committerSamuel J. Greear <sjg@thesjg.com>
Mon, 2 Aug 2010 13:09:27 +0000 (13:09 +0000)
Reported-by: tuxillo
sys/kern/tty_pty.c

index 5d03dc0..9fb6fb3 100644 (file)
@@ -288,6 +288,7 @@ ptsopen(struct dev_open_args *ap)
                if (error)
                        return (error);
        }
+       tp->t_state &= ~TS_ZOMBIE;
        error = (*linesw[tp->t_line].l_open)(dev, tp);
        if (error == 0)
                ptcwakeup(tp, FREAD|FWRITE);