diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-26 09:54:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-26 09:54:52 -0400 |
commit | 71b45aa6ba60a651185cf47792fbf61b7e2b07a8 (patch) | |
tree | 76c59e5921f3c0d8d5cd2dd919a500e0d602a1b9 | |
parent | fb4a7d1b212c9c6a51551e5043f6941a2371d075 (diff) | |
download | stasis-71b45aa6ba60a651185cf47792fbf61b7e2b07a8.tar.gz |
Add cmd and working_dir members to MultiProcessingTask structure
-rw-r--r-- | include/multiprocessing.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |