summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {