Skip to content

Commit 06fb10a

Browse files
authored
bugfix: Use AtomicUsize instead of U64 to count zombies for 32-bit compatibility
Fix #74.
1 parent 581c0a0 commit 06fb10a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reaper/wait.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use async_task::Runnable;
99
use futures_lite::future;
1010

1111
use std::io;
12-
use std::sync::atomic::{AtomicU64, Ordering};
12+
use std::sync::atomic::{AtomicUsize, Ordering};
1313
use std::sync::Mutex;
1414
use std::task::{Context, Poll};
1515

@@ -22,7 +22,7 @@ pub(crate) struct Reaper {
2222
recv: Receiver<Runnable>,
2323

2424
/// Number of zombie processes.
25-
zombies: AtomicU64,
25+
zombies: AtomicUsize,
2626
}
2727

2828
impl Reaper {
@@ -32,7 +32,7 @@ impl Reaper {
3232
Self {
3333
sender,
3434
recv,
35-
zombies: AtomicU64::new(0),
35+
zombies: AtomicUsize::new(0),
3636
}
3737
}
3838

0 commit comments

Comments
 (0)