1
Fork 0

fixup! std: Child::kill() returns error if process has already exited

This commit is contained in:
Andreas Tolfsen 2018-04-08 16:20:15 +01:00
parent 51dc6304e7
commit fd2afa01aa

View file

@ -1146,7 +1146,7 @@ impl Child {
///
/// [`ErrorKind`]: ../io/enum.ErrorKind.html
/// [`InvalidInput`]: ../io/enum.ErrorKind.html#variant.InvalidInput
/// [`Other]: ../io/enum.ErrorKind.html#variant.Other
/// [`Other`]: ../io/enum.ErrorKind.html#variant.Other
#[stable(feature = "process", since = "1.0.0")]
pub fn kill(&mut self) -> io::Result<()> {
self.handle.kill()