bug-hurd
[Top][All Lists]
Advanced

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

[PATCH hurd 4/7] startup: give the tasks we create a name


From: Justus Winter
Subject: [PATCH hurd 4/7] startup: give the tasks we create a name
Date: Sat, 17 Jan 2015 18:26:43 +0100

* startup/startup.c (run): Name the tasks we start.
---
 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




reply via email to

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