mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
Lookup the startup server through /servers/startup
* sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h> (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to get a port to the startup server.
This commit is contained in:
parent
d3da750d01
commit
da6d4404ec
@ -1,3 +1,9 @@
|
|||||||
|
2018-03-12 David Michael <fedora.dm0@gmail.com>
|
||||||
|
|
||||||
|
* sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
|
||||||
|
(reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
|
||||||
|
get a port to the startup server.
|
||||||
|
|
||||||
2018-03-11 Zack Weinberg <zackw@panix.com>
|
2018-03-11 Zack Weinberg <zackw@panix.com>
|
||||||
|
|
||||||
* sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
|
* sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <hurd.h>
|
#include <hurd.h>
|
||||||
|
#include <hurd/paths.h>
|
||||||
#include <hurd/startup.h>
|
#include <hurd/startup.h>
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
|
||||||
@ -33,8 +34,8 @@ reboot (int howto)
|
|||||||
if (err)
|
if (err)
|
||||||
return __hurd_fail (EPERM);
|
return __hurd_fail (EPERM);
|
||||||
|
|
||||||
err = __USEPORT (PROC, __proc_getmsgport (port, 1, &init));
|
init = __file_name_lookup (_SERVERS_STARTUP, 0, 0);
|
||||||
if (!err)
|
if (init != MACH_PORT_NULL)
|
||||||
{
|
{
|
||||||
err = __startup_reboot (init, hostpriv, howto);
|
err = __startup_reboot (init, hostpriv, howto);
|
||||||
__mach_port_deallocate (__mach_task_self (), init);
|
__mach_port_deallocate (__mach_task_self (), init);
|
||||||
|
Loading…
Reference in New Issue
Block a user