From 2d4ded2384900feee6e1fe65fb45b06c974a1cc8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 18 Aug 2021 09:45:15 +0200 Subject: [PATCH] conf: waitpid needs a cleared status It might not change the status when the process has changed state. --- src/pipewire/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/conf.c b/src/pipewire/conf.c index 830f97f3f..565abfeda 100644 --- a/src/pipewire/conf.c +++ b/src/pipewire/conf.c @@ -586,7 +586,7 @@ static int do_exec(struct pw_context *context, const char *key, const char *args } } else { - int status; + int status = 0; res = waitpid(pid, &status, WNOHANG); pw_log_info("exec got pid %d res:%d status:%d", pid, res, status); }