Skip to content

Sudo high cpu usage after terminal is closed #841

Closed
@blazp7

Description

@blazp7

Describe the bug
Frequently the sudo process is left running at 100% on one cpu core, after the terminal is already closed. When i hear the cpu fans i know there is atleast one sudo that i need to kill manually.

To Reproduce
Steps to reproduce the behavior:

  • in terminal for example Alacritty sudo su
  • with nix temporarily download an app nix shell nixpkgs#sysbench
  • kill the terminal (i close it with a Hyprland hotkey)
  • sudo process now starts to run at 100% on one core

Expected behavior
sudo process doesnt torture my cpu.

Environment (please complete the following information):

  • Linux distribution: NixOS 24.05.20240329.d8fe5e6 (Uakari) x86_64
  • sudo-rs 0.2.2

Additional context
I use Hyprland window manager, maybe it has something to do with how it closes apps? Or maybe nix shell causes it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-execExecution component (interfacing with OS)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions