Skip to content

background process's outputs show staircase effect when other command is running in the foreground with sudo #466

@jeffy1009

Description

@jeffy1009

Minimized test case:
(for i in {1..5}; do echo "FOO"; sleep 1; done) & sudo sleep 5
Running this show FOO outputs in staircases.

As soon as I enter the passwords in sudo, it changes stty -a outputs in the background process.
icrnl is one of them.

Tested on Ubuntu 25.04 with Sudo version 1.9.17p2.

Also applies to Ubuntu 22.04 and 24.04 but not on 20.04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions