summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-04-28 23:15:27 +0000
committerRoland McGrath <roland@gnu.org>1996-04-28 23:15:27 +0000
commit78e57fcb634bf7f738b67ef26da6f13ed0b36ffe (patch)
treea0b129111675a4c6a9e1ad737abdc5bb64306916 /init
parent47f6ed189cb2bd170411c47624d4266a7ff857bf (diff)
(reboot_system): Use 1 second timeout on reply to msg_startup_dosync.
Diffstat (limited to 'init')
-rw-r--r--init/init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c
index 6fea4795..a6e0a718 100644
--- a/init/init.c
+++ b/init/init.c
@@ -156,9 +156,7 @@ reboot_system (int flags)
error_t err;
printf ("init: notifying %p\n", (void *) n->notify_port);
fflush (stdout);
- /* XXX Need to time out on reply.
- Add "waittime timeout: integer_t" param in msg.defs. */
- err = msg_startup_dosync (n->notify_port);
+ err = msg_startup_dosync (n->notify_port, 1000); /* 1 second to reply */
if (err && err != MACH_SEND_INVALID_DEST)
{
printf ("init: %p complained: %s\n",