aboutsummaryrefslogtreecommitdiff
path: root/libfshelp/lock-acquire.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-10-10 21:13:37 +0000
committerThomas Bushnell <thomas@gnu.org>1996-10-10 21:13:37 +0000
commit3cabe8d87469422c549d61e7845cc044fe72c660 (patch)
tree96ee2f26536f1264bd6dbbfff95444137b69e6a8 /libfshelp/lock-acquire.c
parentd20d69575f684bf4c355521006a6c9686340d5cf (diff)
downloadhurd-3cabe8d87469422c549d61e7845cc044fe72c660.tar.gz
hurd-3cabe8d87469422c549d61e7845cc044fe72c660.tar.bz2
hurd-3cabe8d87469422c549d61e7845cc044fe72c660.zip
*** empty log message ***
Diffstat (limited to 'libfshelp/lock-acquire.c')
-rw-r--r--libfshelp/lock-acquire.c6
1 files changed, 4 insertions, 2 deletions
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;