We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1978131 commit 3cbe037Copy full SHA for 3cbe037
src/process.rs
@@ -204,6 +204,10 @@ impl Process {
204
// TODO: child subreaper
205
let reaper = INIT_PROC.get().unwrap();
206
207
+ if Arc::ptr_eq(self, reaper) {
208
+ return;
209
+ }
210
+
211
let mut children = self.children.lock(); // Acquire the lock first
212
self.is_zombie.store(true, Ordering::Release);
213
tests/process.rs
@@ -28,12 +28,6 @@ fn free_not_zombie() {
28
init_proc().new_child().free();
29
}
30
31
-#[test]
32
-#[should_panic]
33
-fn init_proc_exit() {
34
- init_proc().exit();
35
-}
36
-
37
#[test]
38
fn free() {
39
let parent = init_proc().new_child();
0 commit comments