chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
service: imply NotifyAccess=main if WatchdogSec= is used
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index 58a0aebad3d3d2ad596658396ab970c7da6d3d0b..11f77abde14412f50c6032d56c3616e2444a103d 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-4623,11
+4623,12
@@
void execute_directory(const char *directory, DIR *d, char *argv[]) {
}
while (!hashmap_isempty(pids)) {
+ pid_t pid = PTR_TO_UINT(hashmap_first_key(pids));
siginfo_t si;
char *path;
zero(si);
- if (waitid(P_
ALL, 0
, &si, WEXITED) < 0) {
+ if (waitid(P_
PID, pid
, &si, WEXITED) < 0) {
if (errno == EINTR)
continue;