From: David Michael Date: Thu, 29 Mar 2018 19:47:29 +0000 (+0100) Subject: Lookup the startup server through /servers/startup X-Git-Tag: archive/raspbian/2.27-3+rpi1^2~81 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=331d91926c5e94ce81afe40917b2f85062a9792d;p=glibc.git Lookup the startup server through /servers/startup * sysdeps/mach/hurd/reboot.c: Include (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to get a port to the startup server. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-reboot-startup.diff --- diff --git a/sysdeps/mach/hurd/reboot.c b/sysdeps/mach/hurd/reboot.c index a7987e164..beeb9bfcb 100644 --- a/sysdeps/mach/hurd/reboot.c +++ b/sysdeps/mach/hurd/reboot.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -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);