16 #include <sys/param.h>
17 #include <sys/prctl.h>
23 #define G_LOG_DOMAIN "libgvm base"
50 char *new_progname, *new_progname_full;
64 for (i = 0; i < argc; i++)
78 environ = g_malloc0 (
sizeof (
char *) * (i + 1));
82 for (i = 0; envp[i]; i++)
83 environ[i] = g_strdup (envp[i]);
115 formatted = g_strdup_vprintf (new_title, args);
117 tmp = strlen (formatted);
126 memcpy (
old_argv[0], formatted, tmp);
143 va_start (args, new_title);