Skip to content

Conversation

N-R-K
Copy link
Contributor

@N-R-K N-R-K commented Mar 21, 2025

Depends on: #801

N-R-K added 2 commits March 22, 2025 20:26
currently there's a lot of ad-hoc fork exec going around. the
goal of this is to centralize most of the typical cases.
since rc_exec uses an `execpipe` to detect exec failures inside
the child, this fixes the issue described in 792, but only for
the first layer of exec. there's a /bin/sh in the middle and we
won't be able to detect whether /bin/sh failed to exec the
command without inspecting the (unreliable) exit code.

Ref: OpenRC#792
@N-R-K N-R-K marked this pull request as ready for review March 22, 2025 20:39
N-R-K added 3 commits March 23, 2025 01:11
this also fixes a bug in run_program() where signals remained
masked in the fork failure case:
OpenRC#809
@navi-desu navi-desu merged commit ab07655 into OpenRC:master Mar 23, 2025
5 checks passed
@N-R-K N-R-K deleted the exec-util branch March 24, 2025 06:07
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.

2 participants