Compare commits

...

4 Commits

Author SHA1 Message Date
John Nunley a9e4b09a6e
v2.2.2
Signed-off-by: John Nunley <dev@notgull.net>
2024-04-20 12:19:56 -07:00
cowlicks 76badb6964
Fix typo in ChildStdin docs (#77) 2024-04-19 10:34:15 +09:00
John Nunley 7323b449d7
v2.2.1
Signed-off-by: John Nunley <dev@notgull.net>
2024-04-13 22:18:58 -07:00
kennytm 06fb10ac23
bugfix: Use AtomicUsize instead of U64 to count zombies for 32-bit compatibility
Fix #74.
2024-04-11 17:03:29 -07:00
4 changed files with 13 additions and 5 deletions

View File

@ -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)

View File

@ -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"

View File

@ -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(

View File

@ -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),
}
}