feat: unique directory for pipelines

Also, start using fork/chdir/exec idiom instead of posix_spawn, because
as we all know: posix_spawn is stupid as a system call:

https://lwn.net/Articles/360556/
This commit is contained in:
2024-08-29 20:51:11 +02:00
parent 22075e17e1
commit fa6ec315c8
5 changed files with 45 additions and 10 deletions

View File

@ -29,6 +29,7 @@ typedef struct {
bool use_colors;
optional_str log_file;
optional_str pipeline_log_dir;
optional_str pipeline_cwd;
optional_strlist environment_vars;
} cli_options;

View File

@ -4,6 +4,7 @@
void executor(void* pipeline_event);
void set_logdir(const char* logdir);
void set_working_directory(const char* cwd);
void set_shared_environment(const strlist_node* root);
#endif