diff options
author | Richard Braun <rbraun@sceen.net> | 2017-01-09 21:30:54 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-01-09 21:37:14 +0100 |
commit | cef4f1daf97826511893815a2b6a891d7ccecac7 (patch) | |
tree | 8f19cdbcee7ad670cce39829ff90bd9437097dad /startup | |
parent | 7320df6815649ab13a93a1b4d889b1b53bc112d4 (diff) | |
download | hurd-cef4f1daf97826511893815a2b6a891d7ccecac7.tar.gz hurd-cef4f1daf97826511893815a2b6a891d7ccecac7.tar.bz2 hurd-cef4f1daf97826511893815a2b6a891d7ccecac7.zip |
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.
Diffstat (limited to 'startup')
-rw-r--r-- | startup/startup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/startup/startup.c b/startup/startup.c index 2eba5636..913742c1 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); |