X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=execute.h;h=581736d0f5cc5c540cc32d05f6ca1cf75c361242;hb=f3bff0eb3bc65de3b74286415a996af9556333af;hp=04b9f6ef8b945f7eb456755e5ea8a8af55056cd4;hpb=fb33a393e21a15ce3b4ac8c16d947fd9b6e77206;p=elogind.git diff --git a/execute.h b/execute.h index 04b9f6ef8..581736d0f 100644 --- a/execute.h +++ b/execute.h @@ -44,12 +44,14 @@ struct ExecContext { char **environment; mode_t umask; struct rlimit *rlimit[RLIMIT_NLIMITS]; /* FIXME: load-fragment parser missing */ - char *directory; + char *working_directory, *root_directory; int oom_adjust; int nice; + int ioprio; bool oom_adjust_set:1; bool nice_set:1; + bool ioprio_set:1; ExecOutput output; int syslog_priority; @@ -91,7 +93,10 @@ typedef enum ExitStatus { EXIT_LIMITS, EXIT_OOM_ADJUST, EXIT_SIGNAL_MASK, - EXIT_OUTPUT + EXIT_OUTPUT, + EXIT_CHROOT, + EXIT_PGID, + EXIT_IOPRIO } ExitStatus; int exec_spawn(const ExecCommand *command, const ExecContext *context, int *fds, unsigned n_fds, pid_t *ret);