diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-13 10:10:21 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-18 23:06:09 -0400 |
commit | 87971633eea3306a0b85a55d7d581841b9dbf905 (patch) | |
tree | 7df1f15826663eb2f1ef8aa7111b04242e0b4fd1 | |
parent | 261c91deb3167bd30ede49ded650b7e659c16111 (diff) | |
download | stasis-87971633eea3306a0b85a55d7d581841b9dbf905.tar.gz |
Fixing headers
-rw-r--r-- | include/multiprocessing.h | 13 | ||||
-rw-r--r-- | src/multiprocessing.c | 2 |
2 files changed, 3 insertions, 12 deletions
diff --git a/include/multiprocessing.h b/include/multiprocessing.h index 6bcf18e..9e0c429 100644 --- a/include/multiprocessing.h +++ b/include/multiprocessing.h @@ -2,27 +2,20 @@ #ifndef STASIS_MULTIPROCESSING_H #define STASIS_MULTIPROCESSING_H -#include <stdio.h> -#include <unistd.h> +#include "core.h" #include <sys/wait.h> -#include <errno.h> -#include <stdlib.h> -#include <string.h> #include <semaphore.h> #include <sys/mman.h> -#include <time.h> #include <fcntl.h> -#include <linux/limits.h> #include <sys/stat.h> -#include <unistd.h> struct MultiProcessingTask { sem_t *gate; ///< Child process startup lock pid_t pid; ///< Program PID pid_t parent_pid; ///< Program PID (parent process) int status; ///< Child process exit status - char ident[NAME_MAX]; ///< Identity of the pool task - char log_file[NAME_MAX]; ///< Path to stdout/stderr log file + char ident[255]; ///< Identity of the pool task + char log_file[255]; ///< Path to stdout/stderr log file char parent_script[PATH_MAX]; ///< Path to temporary script executing the task }; diff --git a/src/multiprocessing.c b/src/multiprocessing.c index 09190d3..6793f2d 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -1,6 +1,4 @@ -#include "core_mem.h" #include "multiprocessing.h" -#include "utils.h" size_t mp_global_task_count = 0; static struct MultiProcessingTask *mp_pool_next_available(struct MultiProcessingPool *pool) { |