Skip to content

exec failure not diagnosed #4

Closed

Description

@smcv

On ValveSoftware/steam-for-linux#13520, @sepdotgg noted that when Steam runs a command wrapped in reaper, if exec'ing the command fails (for example because the executable doesn't exist as seen in that issue, or if there is a permissions problem), nothing is logged to Steam's logs and the exit status of reaper is 0.

Steps to reproduce:

meson setup _build
meson compile -C _build
./_build/reaper -- /nonexistent; echo status=$?
./_build/reaper -- /dev/null; echo status=$?

Expected result: some sort of error message and a nonzero exit status.

Actual result: no error message and status=0.

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