Skip to content

Commit

Permalink
mxqd: set MXQ_HOSTID in main process
Browse files Browse the repository at this point in the history
This enables external programs to read it from the process environment
  • Loading branch information
mariux committed Oct 22, 2015
1 parent 3fb0752 commit bba1452
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bba1452

Please sign in to comment.