1 /*-*- Mode: C; c-basic-offset: 8 -*-*/
10 int exec_spawn(const ExecCommand *command, const ExecContext *context, pid_t *ret) {
18 void exec_context_free(ExecContext *c) {
23 strv_free(c->environment);
25 for (l = 0; l < ELEMENTSOF(c->rlimit); l++)
31 free(c->supplementary_groups);
34 void exec_command_free_list(ExecCommand *c) {
38 LIST_REMOVE(ExecCommand, c, i);
46 void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
58 prefix, yes_no(c->dumpable),
59 prefix, c->chdir ? c->chdir : "/");
62 void exec_context_defaults(ExecContext *c) {
66 cap_clear(c->capabilities);