Skip to content

Commit 1978131

Browse files
committed
fix: init proc can exit
1 parent f0e8c79 commit 1978131

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/process.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ impl Process {
201201
///
202202
/// This method panics if the [`Process`] is the init process.
203203
pub fn exit(self: &Arc<Self>) {
204-
if self.is_init() {
205-
panic!("init process cannot exit");
206-
}
207-
208204
// TODO: child subreaper
209205
let reaper = INIT_PROC.get().unwrap();
210206

0 commit comments

Comments
 (0)