Skip to content

Commit

Permalink
mxqd: restrict job to assigned cpuset
Browse files Browse the repository at this point in the history
  • Loading branch information
donald authored and mariux committed Oct 16, 2015
1 parent 346a953 commit bc92e9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,9 @@ static int init_child_process(struct mxq_group_list *group, struct mxq_job *j)

umask(j->job_umask);

res=sched_setaffinity(0,sizeof(j->host_cpu_set),&j->host_cpu_set);
if (res<0) mx_log_warning("sched_setaffinity: $m");

return 1;
}

Expand Down

0 comments on commit bc92e9d

Please sign in to comment.