bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 8/8] startup: bind the startup server to /servers/startup


From: David Michael
Subject: Re: [PATCH 8/8] startup: bind the startup server to /servers/startup
Date: Thu, 18 Sep 2014 17:14:17 -0400

Hi,

On Wed, Sep 3, 2014 at 8:33 AM, Justus Winter
<4winter@informatik.uni-hamburg.de> wrote:
> Bind the startup server to /servers/startup instead.  Use this to
> contact the startup server.

I'm trying to test this patch, and glibc appears to need an update as
well.  Does this look okay?

Thanks.

David


diff --git a/sysdeps/mach/hurd/reboot.c b/sysdeps/mach/hurd/reboot.c
index 60d96ea..51c3d73 100644
--- a/sysdeps/mach/hurd/reboot.c
+++ b/sysdeps/mach/hurd/reboot.c
@@ -18,6 +18,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <hurd.h>
+#include <hurd/paths.h>
 #include <hurd/startup.h>
 #include <sys/reboot.h>

@@ -33,8 +34,8 @@ reboot (int howto)
   if (err)
     return __hurd_fail (EPERM);

-  err = __USEPORT (PROC, __proc_getmsgport (port, 1, &init));
-  if (!err)
+  init = __file_name_lookup (_SERVERS_STARTUP, 0, 0);
+  if (init != MACH_PORT_NULL)
     {
       err = __startup_reboot (init, hostpriv, howto);
       __mach_port_deallocate (__mach_task_self (), init);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]