[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: |
Justus Winter |
Subject: |
Re: [PATCH 8/8] startup: bind the startup server to /servers/startup |
Date: |
Thu, 18 Sep 2014 23:26:10 +0200 |
User-agent: |
alot/0.3.5 |
Hi David :)
Quoting David Michael (2014-09-18 23:14:17)
> 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?
Looks good to me.
Cheers,
Justus
> 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);
- [PATCH 2/8] Add proc_set_init_task, make runsystem pid 1, (continued)
- [PATCH 2/8] Add proc_set_init_task, make runsystem pid 1, Justus Winter, 2014/09/03
- [PATCH 4/8] init: add a minimalist init program, Justus Winter, 2014/09/03
- [PATCH 5/8] startup: do not pass signals on to the child, Justus Winter, 2014/09/03
- [PATCH 6/8] startup: be more specific in the shutdown message, Justus Winter, 2014/09/03
- [PATCH 7/8] startup: fix the declaration of the *_server functions, Justus Winter, 2014/09/03
- [PATCH 8/8] startup: bind the startup server to /servers/startup, Justus Winter, 2014/09/03
- [PATCH 3/8] startup: rename /hurd/init to /hurd/startup, Justus Winter, 2014/09/03
- Re: [PATCH 1/8] libdiskfs: fix /servers/exec lookup, Samuel Thibault, 2014/09/03