summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-01-29 20:34:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-01-29 20:34:28 +0000
commitbca6a98f0a3eb14355d9330bac5b2f1963dfe49d (patch)
tree45de49d5f9fdd01d67343971ae28955a44ac8b30 /libfshelp
parentd7bc26b053598cf8556b16c2470f5934e0ffb5a8 (diff)
(fshelp_fetch_root): Use hurd_condition_wait instead of
condition_wait.
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/fetch-root.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index 10464617..1daaa202 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -37,6 +37,7 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
{
error_t err;
mach_port_t control;
+ int cancel;
start_over:
@@ -94,7 +95,9 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
if (box->flags & TRANSBOX_STARTING)
{
box->flags |= TRANSBOX_WANTED;
- condition_wait (&box->wakeup, box->lock);
+ cancel = hurd_condition_wait (&box->wakeup, box->lock);
+ if (cancel)
+ return EINTR;
goto start_over;
}
box->flags |= TRANSBOX_STARTING;