From cef4f1daf97826511893815a2b6a891d7ccecac7 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Mon, 9 Jan 2017 21:30:54 +0100 Subject: 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(+) (limited to 'startup') 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); -- cgit v1.2.3