summaryrefslogtreecommitdiff
path: root/term/ptyio.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/ptyio.c')
-rw-r--r--term/ptyio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index 9c1509ff..b02cda3f 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -58,8 +58,7 @@ static int nptyperopens = 0;
static error_t
ptyio_init (void)
{
- condition_implies (inputq->wait, &pty_select_wakeup);
- condition_implies (&pty_read_wakeup, &pty_select_wakeup);
+ pty_select_alert = &pty_select_wakeup;
return 0;
}
@@ -132,6 +131,7 @@ wake_reader ()
{
pty_read_blocked = 0;
condition_broadcast (&pty_read_wakeup);
+ condition_broadcast (&pty_select_wakeup);
}
}