From cb165db2e1367c56cb97f3fe4dd8de919317655c Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 1 Dec 1995 19:40:27 +0000 Subject: (trivfs_S_io_select): Return EINTR if we are cancelled. --- term/users.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'term') diff --git a/term/users.c b/term/users.c index c34bd690..5fd0a579 100644 --- a/term/users.c +++ b/term/users.c @@ -1492,7 +1492,12 @@ trivfs_S_io_select (struct trivfs_protid *cred, return 0; } - hurd_condition_wait (&select_alert, &global_lock); + if (hurd_condition_wait (&select_alert, &global_lock)) + { + *type = 0; + mutex_unlock (&global_lock); + return EINTR; + } } } -- cgit v1.2.3