From 71b45aa6ba60a651185cf47792fbf61b7e2b07a8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 26 Sep 2024 09:54:52 -0400 Subject: Add cmd and working_dir members to MultiProcessingTask structure --- include/multiprocessing.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/multiprocessing.h b/include/multiprocessing.h index f1cc815..aac6d18 100644 --- a/include/multiprocessing.h +++ b/include/multiprocessing.h @@ -16,6 +16,8 @@ struct MultiProcessingTask { int status; ///< Child process exit status int signaled_by; ///< Last signal received, if any char ident[255]; ///< Identity of the pool task + char *cmd; ///< Shell command(s) to be executed + char working_dir[PATH_MAX]; ///< Path to directory `cmd` should be executed in char log_file[PATH_MAX]; ///< Full path to stdout/stderr log file char parent_script[PATH_MAX]; ///< Path to temporary script executing the task struct { -- cgit