Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
John Nunley | a9e4b09a6e | |
cowlicks | 76badb6964 | |
John Nunley | 7323b449d7 | |
kennytm | 06fb10ac23 |
|
@ -1,3 +1,11 @@
|
|||
# Version 2.2.2
|
||||
|
||||
- Fix a typo in the docs for `ChildStdin`. (#76)
|
||||
|
||||
# Version 2.2.1
|
||||
|
||||
- Fix a compilation error for 32-bit operating systems by using a 32-bit zombie counter. (#75)
|
||||
|
||||
# Version 2.2.0
|
||||
|
||||
- Port Linux to a new backend that tries to use `pidfd` if it is available. (#68)
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "async-process"
|
|||
# When publishing a new version:
|
||||
# - Update CHANGELOG.md
|
||||
# - Create "v2.x.y" git tag
|
||||
version = "2.2.0"
|
||||
version = "2.2.2"
|
||||
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
|
||||
edition = "2021"
|
||||
rust-version = "1.63"
|
||||
|
|
|
@ -441,7 +441,7 @@ impl fmt::Debug for Child {
|
|||
|
||||
/// A handle to a child process's standard input (stdin).
|
||||
///
|
||||
/// When a [`ChildStdin`] is dropped, the underlying handle gets clossed. If the child process was
|
||||
/// When a [`ChildStdin`] is dropped, the underlying handle gets closed. If the child process was
|
||||
/// previously blocked on input, it becomes unblocked after dropping.
|
||||
#[derive(Debug)]
|
||||
pub struct ChildStdin(
|
||||
|
|
|
@ -9,7 +9,7 @@ use async_task::Runnable;
|
|||
use futures_lite::future;
|
||||
|
||||
use std::io;
|
||||
use std::sync::atomic::{AtomicU64, Ordering};
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::sync::Mutex;
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
|
@ -22,7 +22,7 @@ pub(crate) struct Reaper {
|
|||
recv: Receiver<Runnable>,
|
||||
|
||||
/// Number of zombie processes.
|
||||
zombies: AtomicU64,
|
||||
zombies: AtomicUsize,
|
||||
}
|
||||
|
||||
impl Reaper {
|
||||
|
@ -32,7 +32,7 @@ impl Reaper {
|
|||
Self {
|
||||
sender,
|
||||
recv,
|
||||
zombies: AtomicU64::new(0),
|
||||
zombies: AtomicUsize::new(0),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue