Skip to content

Commit

Permalink
mxqd: set MXQ_HOSTNAME and MXQ_SERVERID
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Sep 24, 2015
1 parent 426ffed commit 6057a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,8 @@ static int init_child_process(struct mxq_group_list *group, struct mxq_job *j)
mx_setenvf_forever("MXQ_MEMORY", "%lu", g->job_memory);
mx_setenvf_forever("MXQ_TIME", "%d", g->job_time);
mx_setenvf_forever("MXQ_HOSTID", "%s::%s", s->hostname, s->server_id);
mx_setenv_forever("MXQ_HOSTNAME", s->hostname);
mx_setenv_forever("MXQ_SERVERID", s->server_id);

fh = open("/proc/self/loginuid", O_WRONLY|O_TRUNC);
if (fh == -1) {
Expand Down

0 comments on commit 6057a12

Please sign in to comment.