diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-29 20:46:22 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-29 20:46:22 +0100 |
commit | 9eba9da4bce4778b4d5dd43e2c41756976a1582b (patch) | |
tree | f6189c4ef2bb4208926598aa455cd0e646192e3b /execute.h | |
parent | f94ea366d38fed424200b748cb042ca44f8c8d50 (diff) |
support chrooting/setting of ioprio when spawning
Diffstat (limited to 'execute.h')
-rw-r--r-- | execute.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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); |