diff options
-rw-r--r-- | src/multiprocessing.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/multiprocessing.c b/src/multiprocessing.c index 25b667c..0c993d7 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -109,6 +109,9 @@ struct MultiProcessingTask *mp_task(struct MultiProcessingPool *pool, const char return NULL; } + // Set default status to "error" + slot->status = -1; + // Set task identifier string memset(slot->ident, 0, sizeof(slot->ident)); strncpy(slot->ident, ident, sizeof(slot->ident) - 1); |