summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-27 22:21:44 +0000
committerMiles Bader <miles@gnu.org>1996-03-27 22:21:44 +0000
commitfd432f9212723b2ec7ea3027b628b804b859f04c (patch)
treed2535d984e46b461006b54f36dd816368735d313 /term
parent7205283eb2b4a19793dd46c3e80090dbab25afc4 (diff)
(pty_io_read): Block using hurd_condition_wait instead of condition_wait.
Diffstat (limited to 'term')
-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)