Skip to content

timeout: --preserve-status with --kill-after returns the signal number instead of 128+signal #15178

In review

Description

@SichenLiang

Here, coreutils is the uutils multicall binary built with --features unix.

$ coreutils timeout --preserve-status --kill-after=5 1 sleep 5; echo $?

uutils returns 15; GNU coreutils 9.12 returns 143. Without --kill-after, both return 143. In this case the initial SIGTERM ends the child, so the later kill signal is never needed.

Fixed by #15175.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions