From b041e8216c05940f5b3676ef5c7e0ce2b4441bc8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 2 Oct 2024 15:00:57 -0400 Subject: "Task started" is more accurate than "queued" when this is printed --- src/multiprocessing.c | 4 ++-- src/stasis_main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/multiprocessing.c b/src/multiprocessing.c index baa6df7..2a1b350 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -1,6 +1,6 @@ #include "core.h" -/// The sum of all tasks queued by mp_task() +/// The sum of all tasks started by mp_task() size_t mp_global_task_count = 0; static struct MultiProcessingTask *mp_pool_next_available(struct MultiProcessingPool *pool) { @@ -59,7 +59,7 @@ int child(struct MultiProcessingPool *pool, struct MultiProcessingTask *task) { } int parent(struct MultiProcessingPool *pool, struct MultiProcessingTask *task, pid_t pid, int *child_status) { - printf("[%s:%s] Task queued (pid: %d)\n", pool->ident, task->ident, pid); + printf("[%s:%s] Task started (pid: %d)\n", pool->ident, task->ident, pid); // Give the child process access to our PID value task->pid = pid; diff --git a/src/stasis_main.c b/src/stasis_main.c index 2fcfcaf..47579a9 100644 --- a/src/stasis_main.c +++ b/src/stasis_main.c @@ -12,7 +12,7 @@ #define OPT_NO_TESTING 1004 #define OPT_OVERWRITE 1005 #define OPT_NO_REWRITE_SPEC_STAGE_2 1006 -#define OPT_PARALLEL_FAIL_FAST 1007 +#define OPT_FAIL_FAST 1007 #define OPT_NO_PARALLEL 1008 #define OPT_POOL_STATUS_INTERVAL 1009 -- cgit