From fd432f9212723b2ec7ea3027b628b804b859f04c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 27 Mar 1996 22:21:44 +0000 Subject: (pty_io_read): Block using hurd_condition_wait instead of condition_wait. --- term/ptyio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'term/ptyio.c') 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) -- cgit v1.2.3