github daandemeyer/reproc v2.0.0-beta.4

latest releases: v14.2.5, v14.2.4, v14.2.3...
pre-release7 years ago

Breaking Changes

  • Changed reproc_stop, reproc::process constructor and reproc::process::stop to take 3 timeout values instead of a single timeout value. The timeout values are assigned to passed cleanup flags in a fixed order:

    1. REPROC_WAIT (reproc::cleanup::wait)
    2. REPROC_TERMINATE (reproc::cleanup::terminate)
    3. 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 sending SIGKILL and waiting 5 more seconds. Only two flags were passed so the third timeout value (2000) is ignored.

  • Removed reproc::process constructor default values since they encouraged leaky behaviour (didn't make sure the child process was completely cleaned up).

  • Renamed REPROC_ENABLE_W4 CMake option to REPROC_W4.

Don't miss a new reproc release

NewReleases is sending notifications on new releases.