Skip to content

Reflect exit code of child processes - #3

Closed
alkazar wants to merge 4 commits into
Plagman:mainfrom
kora-desktop:main
Closed

alkazar wants to merge 4 commits into
Plagman:mainfrom
kora-desktop:main

Conversation

@alkazar

@alkazar alkazar commented Apr 29, 2024

Copy link
Copy Markdown
Contributor

If any child process reports a non-zero exit code, reaper returns a non-zero exit code, otherwise return an exit code of zero.

This change was useful in order to detect when games are crashing.

I also added a simple makefile to make things a little easier to build.

@smcv

smcv commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

(I am not a reaper developer)

reflect exit codes of child processes

I think this is the only commit in this PR that would be appropriate to apply "upstream"; the others make sense for a derivative, but not for the project as included here.

Normally I would suggest rebasing the branch so that this is the only commit in it, but I see that this PR is based on the main branch of a fork of reaper, so that is probably not an option for you. Instead, I suspect it would be better to close this PR, create a "topic branch" with only that one commit, and open a new PR for that topic branch.

smcv added a commit to smcv/reaper that referenced this pull request Oct 16, 2026
On success, `execvp()` does not return, but on failure it can.
Previously, the child process would have fallen through to waiting
for its own child processes (in practice it would not have any)
and then exiting with status 0.

With this change, the child process exits with a nonzero status, but
propagating that through the reaper (the parent) would require something
similar to Plagman#3.

Related to ValveSoftware/steam-for-linux#13520

Resolves: Plagman#4
Signed-off-by: Simon McVittie <[email protected]>
@smcv

smcv commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

I cherry-picked the key commit from here into #6, because without that change, #6 wouldn't be able to report a nonzero exit status on exec failure either.

@Plagman

Plagman commented Oct 16, 2026

Copy link
Copy Markdown
Owner

We can close this now, I think, as it was included in the other MR like Simon said.

@Plagman Plagman closed this Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants