summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-16 21:30:19 -0400
committerXANTRONIX Development2022-03-16 21:30:19 -0400
commitc424f18c451408aa1adb146008b713eac7669b62 (patch)
treee3588ae3e06a663e96de77391c9b230011f76857
parent939a7ec5bcf284f0516fde3572e9aedae665d3b2 (diff)
downloadxas-c424f18c451408aa1adb146008b713eac7669b62.tar.gz
xas-c424f18c451408aa1adb146008b713eac7669b62.tar.bz2
xas-c424f18c451408aa1adb146008b713eac7669b62.zip
Do not attempt to waitpid() on -1
-rw-r--r--src/vox.c2
1 files changed, 1 insertions, 1 deletions
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) {