diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-20 18:45:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-20 18:45:59 +0200 |
commit | f41a28fe3ec5042849583081ca0e1aa6c38a7187 (patch) | |
tree | fe9967e994ff0fa9357dca81174a3d0ed092a4f1 /include | |
parent | 45c427b23e035aac49bc961115a1beff1f74d5ee (diff) |
Daemonize async process to automatically reap the child when it dies
Diffstat (limited to 'include')
-rw-r--r-- | include/Program.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Program.h b/include/Program.h index bc3e91e..cd45b30 100644 --- a/include/Program.h +++ b/include/Program.h @@ -30,7 +30,9 @@ bool wait_program_non_blocking(pid_t process_id, int *status); /* @args need to have at least 2 arguments. The first which is the program name - and the last which is NULL, which indicates end of args + and the last which is NULL, which indicates end of args. + @result_process_id should be set to NULL if you are not interested in the exit status of the child process + and you want the child process to be cleaned up automatically when it dies. */ int exec_program_async(const char **args, pid_t *result_process_id); #if 0 |