commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 03/03: startup: insert the kernel name in its commande line


From: Samuel Thibault
Subject: [hurd] 03/03: startup: insert the kernel name in its commande line
Date: Tue, 17 Jan 2017 11:19:40 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit cef4f1daf97826511893815a2b6a891d7ccecac7
Author: Richard Braun <address@hidden>
Date:   Mon Jan 9 21:30:54 2017 +0100

    startup: insert the kernel name in its commande line
    
    This cosmetic change sets argv[0] to "gnumach", making it easier to
    identify the kernel process.
    
    * startup/startup.c (frob_kernel_process): Insert "gnumach" at the start
    of the kernel command line arguments.
---
 startup/startup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/startup/startup.c b/startup/startup.c
index 2eba563..913742c 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -994,6 +994,8 @@ frob_kernel_process (void)
 
   err = argz_create (&global_argv[1], &argz, &argzlen);
   assert_perror (err);
+  err = argz_insert (&argz, &argzlen, argz, "gnumach");
+  assert_perror (err);
   argc = argz_count (argz, argzlen);
 
   windowsz = round_page (((argc + 1) * sizeof (char *)) + argzlen);

-- 
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]