diff options
author | XANTRONIX Development | 2022-03-16 21:30:19 -0400 |
---|---|---|
committer | XANTRONIX Development | 2022-03-16 21:30:19 -0400 |
commit | c424f18c451408aa1adb146008b713eac7669b62 (patch) | |
tree | e3588ae3e06a663e96de77391c9b230011f76857 /src | |
parent | 939a7ec5bcf284f0516fde3572e9aedae665d3b2 (diff) | |
download | xas-c424f18c451408aa1adb146008b713eac7669b62.tar.gz xas-c424f18c451408aa1adb146008b713eac7669b62.tar.bz2 xas-c424f18c451408aa1adb146008b713eac7669b62.zip |
Do not attempt to waitpid() on -1
Diffstat (limited to 'src')
-rw-r--r-- | src/vox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |