diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-23 11:20:39 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-23 11:39:45 +0200 |
commit | 3e24e8cd647478b3d161f1887785132e334e5df5 (patch) | |
tree | 4b8a5245b590c84e103d79bf63c518a25cb23a74 /src/shared/exec-util.h | |
parent | basic/process-util: use xsprintf() in one more place (diff) | |
download | systemd-3e24e8cd647478b3d161f1887785132e334e5df5.tar.xz systemd-3e24e8cd647478b3d161f1887785132e334e5df5.zip |
Move fork_agent() into shared/
Currently it's only used in two places in src/shared/, so the function was
already included just once in compiled code. But it seems appropriate to
move it there anyway, because library code should have no need to fork
agents, so it doesn't belong in basic/.
Diffstat (limited to 'src/shared/exec-util.h')
-rw-r--r-- | src/shared/exec-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/exec-util.h b/src/shared/exec-util.h index 9ce5324de9..21d28608f9 100644 --- a/src/shared/exec-util.h +++ b/src/shared/exec-util.h @@ -48,3 +48,5 @@ const char* exec_command_flags_to_string(ExecCommandFlags i); ExecCommandFlags exec_command_flags_from_string(const char *s); int fexecve_or_execve(int executable_fd, const char *executable, char *const argv[], char *const envp[]); + +int fork_agent(const char *name, int except[], size_t n_except, pid_t *ret_pid, const char *path, ...) _sentinel_; |