Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ fn main() -> Result<()> {
let ppid = libc::getppid();
if ppid == 1 {
// The parent is init, meaning we won't get PDEATHSIG if the original parent is gone
return Err(Error::new(
ErrorKind::Other,
"Unable to operate on a program whose parent is init",
));
panic!("Unable to operate on a program whose parent is init");
}

Ok(())
Expand Down