[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 4/7] startup: give the tasks we create a name
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 4/7] startup: give the tasks we create a name |
Date: |
Sat, 17 Jan 2015 18:39:33 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Sat 17 Jan 2015 18:26:43 +0100, a écrit :
> * startup/startup.c (run): Name the tasks we start.
Ack, thanks!
> ---
> startup/startup.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/startup/startup.c b/startup/startup.c
> index 601c894..c9fe215 100644
> --- a/startup/startup.c
> +++ b/startup/startup.c
> @@ -33,6 +33,7 @@
> #include <sys/file.h>
> #include <unistd.h>
> #include <string.h>
> +#include <mach/gnumach.h>
> #include <mach/notify.h>
> #include <stdlib.h>
> #include <hurd/msg.h>
> @@ -376,6 +377,7 @@ run (const char *server, mach_port_t *ports, task_t *task)
> printf ("Pausing for %s\n", prog);
> getchar ();
> }
> + task_set_name (*task, (char *) prog);
> err = file_exec (file, *task, 0,
> (char *)prog, strlen (prog) + 1, /* Args. */
> startup_envz, startup_envz_len,
> --
> 2.1.4
>
--
Samuel
<y> le y est un animal discret se logeant facilement dans un terminal
*** c has changed the topic on channel #ens-mim to ne pas jeter de cacahuetes
aux ys, svp
-+- #ens-mim - n'oubliez pas le guide -+-
- [PATCH hurd 1/7] libfshelp: improve error handling, Justus Winter, 2015/01/17
- [PATCH hurd 2/7] libdiskfs: fix port leak, Justus Winter, 2015/01/17
- [PATCH hurd 4/7] startup: give the tasks we create a name, Justus Winter, 2015/01/17
- Re: [PATCH hurd 4/7] startup: give the tasks we create a name,
Samuel Thibault <=
- [PATCH hurd 3/7] libports: silence pointless error message, Justus Winter, 2015/01/17
- [PATCH hurd 6/7] auth: remove implicit assumption about the bootstrap process, Justus Winter, 2015/01/17
- [PATCH hurd 7/7] proc: call `startup_essential_task' earlier, Justus Winter, 2015/01/17
- [PATCH hurd 5/7] auth: simplify expression, Justus Winter, 2015/01/17
- Re: [PATCH hurd 1/7] libfshelp: improve error handling, Samuel Thibault, 2015/01/17