diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-17 09:32:17 -0400 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-18 23:08:02 -0400 | 
| commit | 3c3468d0c4bba45ed8626894613cc44e5fcd51c0 (patch) | |
| tree | 10dac75685bcae32d7fd386de6745a1ab13ac9a8 | |
| parent | daf8c81c35f590f2ac145801933792a070ccbee2 (diff) | |
| download | stasis-3c3468d0c4bba45ed8626894613cc44e5fcd51c0.tar.gz | |
Set task status to -1 by default
| -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); | 
