diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-02-20 12:47:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-02-21 09:25:46 +0100 |
commit | c17c467144724e86a80d8aa4c8aca4e8e5eb8d53 (patch) | |
tree | e9bd638452d296fe51c9d7c6b23420fd554e5bac /src/userdb | |
parent | importd: port importd over to new invoke_callout_binary() API (diff) | |
download | systemd-c17c467144724e86a80d8aa4c8aca4e8e5eb8d53.tar.xz systemd-c17c467144724e86a80d8aa4c8aca4e8e5eb8d53.zip |
userdbd: port userdbd over to invoke_callout_binary()
Diffstat (limited to 'src/userdb')
-rw-r--r-- | src/userdb/userdbd-manager.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/userdb/userdbd-manager.c b/src/userdb/userdbd-manager.c index 73b6d72026..8720721f43 100644 --- a/src/userdb/userdbd-manager.c +++ b/src/userdb/userdbd-manager.c @@ -4,6 +4,7 @@ #include "sd-daemon.h" +#include "build-path.h" #include "common-signal.h" #include "env-util.h" #include "fd-util.h" @@ -191,11 +192,8 @@ static int start_one_worker(Manager *m) { _exit(EXIT_FAILURE); } - /* execl("/home/lennart/projects/systemd/build/systemd-userwork", "systemd-userwork", "xxxxxxxxxxxxxxxx", NULL); /\* With some extra space rename_process() can make use of *\/ */ - /* execl("/usr/bin/valgrind", "valgrind", "/home/lennart/projects/systemd/build/systemd-userwork", "systemd-userwork", "xxxxxxxxxxxxxxxx", NULL); /\* With some extra space rename_process() can make use of *\/ */ - - execl(SYSTEMD_USERWORK_PATH, "systemd-userwork", "xxxxxxxxxxxxxxxx", NULL); /* With some extra space rename_process() can make use of */ - log_error_errno(errno, "Failed start worker process: %m"); + r = invoke_callout_binary(SYSTEMD_USERWORK_PATH, STRV_MAKE(SYSTEMD_USERWORK_PATH, "xxxxxxxxxxxxxxxx")); /* With some extra space rename_process() can make use of */ + log_error_errno(r, "Failed start worker process: %m"); _exit(EXIT_FAILURE); } |