diff options
author | Dominique Martinet <dominique.martinet@atmark-techno.com> | 2023-02-02 11:19:00 +0900 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2023-04-24 22:06:41 -0500 |
commit | 0b9c3c080388476519ac3385c21518cc5a94735a (patch) | |
tree | d42f9943159e9dea6c9f6b369b888224a377167f /src/openrc-run | |
parent | a3c721b6821f1ecbe7ac567becc13df08b416f36 (diff) |
openrc-run: silence lock failures with --no-deps
work around scary warnings described in previous commit
Diffstat (limited to 'src/openrc-run')
-rw-r--r-- | src/openrc-run/openrc-run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openrc-run/openrc-run.c b/src/openrc-run/openrc-run.c index e9a064f8..bf64a1b3 100644 --- a/src/openrc-run/openrc-run.c +++ b/src/openrc-run/openrc-run.c @@ -612,7 +612,7 @@ svc_start_check(void) } if (exclusive_fd == -1) - exclusive_fd = svc_lock(applet); + exclusive_fd = svc_lock(applet, !deps); if (exclusive_fd == -1) { if (errno == EACCES) eerrorx("%s: superuser access required", applet); @@ -864,7 +864,7 @@ svc_stop_check(RC_SERVICE *state) exit(EXIT_FAILURE); if (exclusive_fd == -1) - exclusive_fd = svc_lock(applet); + exclusive_fd = svc_lock(applet, !deps); if (exclusive_fd == -1) { if (errno == EACCES) eerrorx("%s: superuser access required", applet); |