From 3cabe8d87469422c549d61e7845cc044fe72c660 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 10 Oct 1996 21:13:37 +0000 Subject: *** empty log message *** --- libfshelp/lock-acquire.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libfshelp/lock-acquire.c') diff --git a/libfshelp/lock-acquire.c b/libfshelp/lock-acquire.c index 9c81634a..42e75dd0 100644 --- a/libfshelp/lock-acquire.c +++ b/libfshelp/lock-acquire.c @@ -80,7 +80,8 @@ fshelp_acquire_lock (struct lock_box *box, int *user, struct mutex *mut, if (flags & LOCK_NB) return EWOULDBLOCK; box->waiting = 1; - condition_wait (&box->wait, mut); + if (hurd_condition_wait (&box->wait, mut)) + return EINTR; } /* If we have a shared lock, release it. */ @@ -116,7 +117,8 @@ fshelp_acquire_lock (struct lock_box *box, int *user, struct mutex *mut, else { box->waiting = 1; - condition_wait (&box->wait, mut); + if (hurd_condition_wait (&box->wait, mut)) + return EINTR; } } box->type = LOCK_EX; -- cgit v1.2.3