summaryrefslogtreecommitdiff
path: root/src/execute.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-11 22:37:10 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-11 22:37:10 +0200
commit7fab9d01b5940a67ca070754361afb9dfaa520f2 (patch)
tree4c1c02f2a01fb255848846edb66c48dc5caf6ba1 /src/execute.h
parente364ad0628b5930a671ae5be863b960f4bd748a8 (diff)
pahole: rearrange structs to make them smaller
Diffstat (limited to 'src/execute.h')
-rw-r--r--src/execute.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/execute.h b/src/execute.h
index 4b3449e265..5410f83561 100644
--- a/src/execute.h
+++ b/src/execute.h
@@ -87,8 +87,8 @@ struct ExecCommand {
char *path;
char **argv;
ExecStatus exec_status;
- bool ignore;
LIST_FIELDS(ExecCommand, command); /* useful for chaining commands */
+ bool ignore;
};
struct ExecContext {
@@ -105,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;
@@ -134,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
@@ -154,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 {