X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fexecute.h;h=aa5f56667759ecd521d6244c28b57be669a75293;hb=b58b41160fde88a82cba1ddec4be7dfb08825e35;hp=841670aa6d6fe623737d96501575495f861b3224;hpb=6398320759ce4ed84922bb28f715d3c6c66166c4;p=elogind.git diff --git a/src/execute.h b/src/execute.h index 841670aa6..aa5f56667 100644 --- a/src/execute.h +++ b/src/execute.h @@ -93,7 +93,8 @@ struct ExecContext { int cpu_sched_policy; int cpu_sched_priority; - cpu_set_t cpu_affinity; + cpu_set_t *cpuset; + unsigned cpuset_ncpus; unsigned long timer_slack_ns; ExecInput std_input; @@ -134,7 +135,6 @@ struct ExecContext { bool nice_set:1; bool ioprio_set:1; bool cpu_sched_set:1; - bool cpu_affinity_set:1; bool timer_slack_ns_set:1; /* This is not exposed to the user but available @@ -142,7 +142,7 @@ struct ExecContext { * /bin/mount it is run in the same process group as us so * that the autofs logic detects that it belongs to us and we * don't enter a trigger loop. */ - bool no_setsid:1; + bool no_setsid; }; typedef enum ExitStatus { @@ -217,7 +217,8 @@ void exec_context_init(ExecContext *c); void exec_context_done(ExecContext *c); void exec_context_dump(ExecContext *c, FILE* f, const char *prefix); -void exec_status_fill(ExecStatus *s, pid_t pid, int code, int status); +void exec_status_start(ExecStatus *s, pid_t pid); +void exec_status_exit(ExecStatus *s, pid_t pid, int code, int status); void exec_status_dump(ExecStatus *s, FILE *f, const char *prefix); const char* exec_output_to_string(ExecOutput i);