pub fn sweep(root: &Path, grace: Duration)Expand description
Stop every process in this process group whose working directory is under
root: SIGTERM first, then SIGKILL for what is still running after
grace. Returns once none is left, or after SIGKILL has been given a moment
to land.
Best effort, but never silently. If there is something to stop, it says
so, because the wait can be long and would otherwise read as a hang. If
anything is still running at the end, or kill(1) cannot be run, it names
the survivors: they hold ports, and the next bynk dev would otherwise fail
with a bind error and nothing pointing back here. If ps cannot be run
there is nothing to select from, and this does nothing, as bynk dev did
before #1742.