Merge pull request #15 from smol-rs/next

Bump to v1.1.0
This commit is contained in:
Taiki Endo 2021-04-24 17:49:40 +09:00 committed by GitHub
commit bc9719e64a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# Version 1.1.0
- Add `into_stdio` method to `ChildStdin`, `ChildStdout`, and `ChildStderr`. (#13)
# Version 1.0.2
- Use `kill_on_drop` only when the last reference to `ChildGuard` is dropped.

View File

@ -1,5 +1,8 @@
[package]
name = "async-process"
# When publishing a new version:
# - Update CHANGELOG.md
# - Create "v1.x.y" git tag
version = "1.1.0"
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
edition = "2018"

View File

@ -940,12 +940,12 @@ impl Command {
}
}
/// Moves `Fd` out of non-blocking mode.
#[cfg(unix)]
/// Moves `Fd` out of nonblocking mode.
fn blocking_fd(fd: std::os::unix::io::RawFd) -> io::Result<()> {
// Helper macro to execute a system call that returns an `io::Result`.
macro_rules! syscall {
($fn: ident ( $($arg: expr),* $(,)* ) ) => {{
($fn:ident ( $($arg:expr),* $(,)? ) ) => {{
let res = unsafe { libc::$fn($($arg, )*) };
if res == -1 {
return Err(std::io::Error::last_os_error());