diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-17 10:29:13 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-18 23:08:03 -0400 |
commit | 3ef3a2758c572dcdeed7d693f52c5049394f11f5 (patch) | |
tree | 7e0df913c83a421fbb7203bb707c5b7018bafa37 /src | |
parent | 60c0a3c8607b835f73e77d89b5f67a8e6bd5c8b3 (diff) | |
download | stasis-3ef3a2758c572dcdeed7d693f52c5049394f11f5.tar.gz |
Fix test status expectation
* Fix child not returning result of execvp(). task->status is for program status, not fork() status.
Diffstat (limited to 'src')
-rw-r--r-- | src/multiprocessing.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/multiprocessing.c b/src/multiprocessing.c index 5eb9f81..8709911 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -65,8 +65,7 @@ int child(struct MultiProcessingPool *pool, struct MultiProcessingTask *task, co fflush(stdout); fflush(stderr); char *args[] = {"bash", "--norc", task->parent_script, (char *) NULL}; - task->status = execvp("/bin/bash", args); - return 0; // NOP return to satisfy the compiler + return execvp("/bin/bash", args); } int parent(struct MultiProcessingPool *pool, struct MultiProcessingTask *task, pid_t pid, int *child_status) { |