Skip to content

Commit

Permalink
Pass 0 as a parameter in case idtype_t is not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Kramer committed Mar 14, 2024
1 parent 8c3cdcb commit 23cd175
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/eventcore/drivers/posix/processes.d
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,10 @@ final class PosixEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProces
while (true) {
siginfo_t dummy;

version (Android) {
// P_ALL is defined as 0 on android
auto ret = waitid(0, -1, &dummy, WEXITED|WNOWAIT);
} else {
static if (is(idtype_t)) {
auto ret = waitid(idtype_t.P_ALL, -1, &dummy, WEXITED|WNOWAIT);
} else {
auto ret = waitid(0, -1, &dummy, WEXITED|WNOWAIT);
}

if (ret == -1) {
Expand Down

0 comments on commit 23cd175

Please sign in to comment.