From bba1452a9528161cc4c46d6b17f477b67da9377e Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Mon, 19 Oct 2015 15:56:54 +0200 Subject: [PATCH] mxqd: set MXQ_HOSTID in main process This enables external programs to read it from the process environment --- mxqd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mxqd.c b/mxqd.c index 48b5e9b..d4e5372 100644 --- a/mxqd.c +++ b/mxqd.c @@ -507,6 +507,7 @@ int server_init(struct mxq_server *server, int argc, char *argv[]) mx_proc_pid_stat_free(&pps); mx_asprintf_forever(&server->host_id, "%s-%llx-%x", server->boot_id, server->starttime, getpid()); + mx_setenv_forever("MXQ_HOSTID", server->host_id); server->slots = threads_total; res = cpuset_init(server);