• mitchty@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    5 hours ago

    Doesn’t do much if the process is in uninterruptible I/o. Kill can’t do much against syscalls that aren’t returning, you’ll be rebooting. You can try this https://github.com/mitchty/nix/blob/shenanigans/src/evilkill.sh but it’s not guaranteed to work. It’s just trying to force the process to exit(), but it doesn’t always work and can’t. All that script amounts to is attaching a debugger and executing assembly to mimic exit. I’ll say 60% of the time it works 100% of the time when kill doesn’t.