X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=execute.h;h=5099a82435595a6769d924dbcb2d7a725e9f7cfc;hb=70123e68a04016efca9266fc22dd05a0a7fd2d51;hp=d64111b156f6d3081e191872b386cbb5ab358dd2;hpb=81a2b7ceda7100fbc0dd8ce423b9599e03656851;p=elogind.git diff --git a/execute.h b/execute.h index d64111b15..5099a8243 100644 --- a/execute.h +++ b/execute.h @@ -33,11 +33,13 @@ typedef struct ExecContext ExecContext; #include #include +struct CGroupBonding; + #include "list.h" #include "util.h" /* Abstract namespace! */ -#define LOGGER_SOCKET "/org/freedesktop.org/systemd1/logger" +#define LOGGER_SOCKET "/org/freedesktop/systemd1/logger" typedef enum ExecOutput { EXEC_OUTPUT_CONSOLE, @@ -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);