Breaking Changes
-
Changed
reproc_stop,reproc::processconstructor andreproc::process::stopto take 3 timeout values instead of a single timeout value. The timeout values are assigned to passed cleanup flags in a fixed order:REPROC_WAIT(reproc::cleanup::wait)REPROC_TERMINATE(reproc::cleanup::terminate)REPROC_KILL(reproc::cleanup::kill)
Example: when calling
reproc_stop(&process, REPROC_WAIT | REPROC_KILL, 10000, 5000, 2000, NULL)the function will first wait for 10 seconds before sendingSIGKILLand waiting 5 more seconds. Only two flags were passed so the third timeout value (2000) is ignored. -
Removed
reproc::processconstructor default values since they encouraged leaky behaviour (didn't make sure the child process was completely cleaned up). -
Renamed
REPROC_ENABLE_W4CMake option toREPROC_W4.