X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fexecute.h;h=5410f83561203f05276416e571b1735136b80f54;hp=f93ab7a00ba3ddce1bac30ac29cc03206c605cdb;hb=2cf19a7a8f42a313234b716eeefe08bdf77af348;hpb=2e22afe909cd5fa003347aa91ad15f0516e5047f diff --git a/src/execute.h b/src/execute.h index f93ab7a00..5410f8356 100644 --- a/src/execute.h +++ b/src/execute.h @@ -88,6 +88,7 @@ struct ExecCommand { char **argv; ExecStatus exec_status; LIST_FIELDS(ExecCommand, command); /* useful for chaining commands */ + bool ignore; }; struct ExecContext { @@ -104,15 +105,12 @@ struct ExecContext { cpu_set_t *cpuset; unsigned cpuset_ncpus; - unsigned long timer_slack_nsec; ExecInput std_input; ExecOutput std_output; ExecOutput std_error; - int syslog_priority; - char *syslog_identifier; - bool syslog_level_prefix; + unsigned long timer_slack_nsec; char *tcpwrap_name; @@ -133,19 +131,21 @@ struct ExecContext { uint64_t capability_bounding_set_drop; + /* Not relevant for spawning processes, just for killing */ + KillMode kill_mode; + int kill_signal; + cap_t capabilities; int secure_bits; + int syslog_priority; + char *syslog_identifier; + bool syslog_level_prefix; + bool cpu_sched_reset_on_fork; bool non_blocking; bool private_tmp; - bool oom_adjust_set:1; - bool nice_set:1; - bool ioprio_set:1; - bool cpu_sched_set:1; - bool timer_slack_nsec_set:1; - /* This is not exposed to the user but available * internally. We need it to make sure that whenever we spawn * /bin/mount it is run in the same process group as us so @@ -153,9 +153,11 @@ struct ExecContext { * don't enter a trigger loop. */ bool same_pgrp; - /* Not relevant for spawning processes, just for killing */ - KillMode kill_mode; - int kill_signal; + bool oom_adjust_set:1; + bool nice_set:1; + bool ioprio_set:1; + bool cpu_sched_set:1; + bool timer_slack_nsec_set:1; }; typedef enum ExitStatus {