From c424f18c451408aa1adb146008b713eac7669b62 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 16 Mar 2022 21:30:19 -0400 Subject: Do not attempt to waitpid() on -1 --- src/vox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vox.c b/src/vox.c index 136cf47..775aee9 100644 --- a/src/vox.c +++ b/src/vox.c @@ -29,7 +29,7 @@ static int vox_stop(xas_vox *vox, ...) { vox->in = NULL; } - if (vox->pid) { + if (vox->pid > 0) { int status; if (waitpid(vox->pid, &status, 0) < 0) { -- cgit v1.2.3