summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2019-11-22 20:10:05 -0800
committerCarl Lerche <me@carllerche.com>2019-11-22 20:10:05 -0800
commite20dff39ce3eaba7ec40e3ecbbd5e737d07427eb (patch)
tree1d42f79ba70d939d2489398c8cac09789fadcd7e /examples
parent7b4c999341809588a427a9a80d310ee4aa1c1a21 (diff)
process: do not kill spawned processes on drop (#1814)
This updates the tokio `Command` and `Child` behavior to match that of the stdlib: spawned processes will *not* be automatically killed when the handle is dropped Unlike the stdlib, any dropped (unix) processes may be reaped by tokio behind-the-scenes after they exit and if new processes are awaited, which mitigates the risks of piling up unreaped zombie unix processes A `Command::kill_on_drop` method is added to allow the caller to control whether the spawned child should be killed when the handle is dropped. By default, this value is `false`. The `Child::forget` method has been removed, as it is superseded by `Command::kill_on_drop`
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions