commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 27/37: startup: give the tasks we create a name


From: Samuel Thibault
Subject: [hurd] 27/37: startup: give the tasks we create a name
Date: Mon, 09 Feb 2015 09:59:11 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to annotated tag upstream/hurd/0.5.git20150208
in repository hurd.

commit 361c586e263ebf4a0531045029c3cf076dbcb847
Author: Justus Winter <address@hidden>
Date:   Fri Jan 9 11:06:52 2015 +0100

    startup: give the tasks we create a name
    
    * 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

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