diff --git src util src util index d0c92cb 9bc8ead 100644 --- src util

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/src/util.c b/src/util.c
index d0c92cb..9bc8ead 100644
--- a/src/util.c
+++ b/src/util.c
@@ -122,7 +122,7 @@ int spawn(const char *cmd, char *const argv[])
}
}
- return ret;
+ return (WIFEXITED(ret) && WEXITSTATUS(ret) == 0) ? GE_OK : GE_ERROR;
}
/*