From 78e57fcb634bf7f738b67ef26da6f13ed0b36ffe Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 28 Apr 1996 23:15:27 +0000 Subject: (reboot_system): Use 1 second timeout on reply to msg_startup_dosync. --- init/init.c | 4 +--- 1 file changed, 1 insertion(+), 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", -- cgit v1.2.3