X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=execute.h;h=5099a82435595a6769d924dbcb2d7a725e9f7cfc;hp=d8073e14b022cbf21ef595ae597f61458715badc;hb=ee2b489421ce8b47c08fb42c598c5af47043a9f9;hpb=ebfaa1586ec50e802cc8d650c453f9a0ece80aeb diff --git a/execute.h b/execute.h index d8073e14b..5099a8243 100644 --- a/execute.h +++ b/execute.h @@ -33,6 +33,8 @@ typedef struct ExecContext ExecContext; #include #include +struct CGroupBonding; + #include "list.h" #include "util.h" @@ -91,6 +93,7 @@ struct ExecContext { bool cpu_sched_reset_on_fork; bool non_blocking; + bool new_session; ExecInput input; ExecOutput output; @@ -145,7 +148,9 @@ typedef enum ExitStatus { EXIT_CPUAFFINITY, EXIT_GROUP, EXIT_USER, - EXIT_CAPABILITIES + EXIT_CAPABILITIES, + EXIT_CGROUP, /* 220 */ + EXIT_SETSID } ExitStatus; int exec_spawn(const ExecCommand *command, @@ -153,6 +158,7 @@ int exec_spawn(const ExecCommand *command, int *fds, unsigned n_fds, bool apply_permissions, bool apply_chroot, + struct CGroupBonding *cgroup_bondings, pid_t *ret); void exec_command_free_list(ExecCommand *c);