process: Mark status_async2/StatusAsync2 as deprecated

This commit is contained in:
Ivan Petkov
2019-06-24 16:56:52 -07:00
parent ad5179b2d5
commit de9b401457
2 changed files with 40 additions and 9 deletions
+3 -3
View File
@@ -120,13 +120,13 @@ fn wait_with_output_captures() {
}
#[test]
fn status2_closes_any_pipes() {
fn status_closes_any_pipes() {
let mut core = Core::new().unwrap();
// Cat will open a pipe between the parent and child.
// If `status_async2` doesn't ensure the handles are closed,
// If `status_async` doesn't ensure the handles are closed,
// we would end up blocking forever (and time out).
let child = cat().status_async2(&core.handle()).unwrap();
let child = cat().status_async(&core.handle()).unwrap();
let timeout = Timeout::new(Duration::from_secs(1), &core.handle())
.expect("timeout registration failed")
.map(|()| panic!("time out exceeded! did we get stuck waiting on the child?"));