summaryrefslogtreecommitdiff
path: root/term/ptyio.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/ptyio.c')
-rw-r--r--term/ptyio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index a01aca1a..ddab8eb2 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -279,7 +279,11 @@ pty_io_read (struct trivfs_protid *cred,
&& (!qsize (outputq) || (termflags & USER_OUTPUT_SUSP)))
{
pty_read_blocked = 1;
- condition_wait (&pty_read_wakeup, &global_lock);
+ if (hurd_condition_wait (&pty_read_wakeup, &global_lock))
+ {
+ mutex_unlock (&global_lock);
+ return EINTR;
+ }
}
if (control_byte)