From bca6a98f0a3eb14355d9330bac5b2f1963dfe49d Mon Sep 17 00:00:00 2001
From: "Michael I. Bushnell" <mib@gnu.org>
Date: Mon, 29 Jan 1996 20:34:28 +0000
Subject: (fshelp_fetch_root): Use hurd_condition_wait instead of
 condition_wait.

---
 libfshelp/fetch-root.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'libfshelp/fetch-root.c')

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;
-- 
cgit v1.2.3