Skip to content

tests: fix lsfd/mkfds-multiplexing coproc PID handling#4404

Draft
karelzak wants to merge 1 commit into
util-linux:masterfrom
karelzak:PR/lsfd-multiplexing-fix
Draft

tests: fix lsfd/mkfds-multiplexing coproc PID handling#4404
karelzak wants to merge 1 commit into
util-linux:masterfrom
karelzak:PR/lsfd-multiplexing-fix

Conversation

@karelzak
Copy link
Copy Markdown
Collaborator

@karelzak karelzak commented Jun 8, 2026

Bash automatically unsets the MKFDS_PID variable when the coproc terminates. If the multiplexer syscall is not available at runtime (e.g., select on ppc64le with kernel 6.18 returns ENOSYS despite __NR_select being defined at compile time), the coproc exits immediately and MKFDS_PID becomes empty, causing:

wait: '': not a pid or valid job spec

Save MKFDS_PID to a regular variable (MKFDS_CPID) immediately after starting the coproc.

Additionally, add a kill -0 liveness check after reading the PID to detect when the multiplexer process died early (e.g., due to ENOSYS) and skip the subtest cleanly.

Bash automatically unsets the MKFDS_PID variable when the coproc
terminates. If the multiplexer syscall is not available at runtime
(e.g., select on ppc64le with kernel 6.18 returns ENOSYS despite
__NR_select being defined at compile time), the coproc exits
immediately and MKFDS_PID becomes empty, causing:

  wait: '': not a pid or valid job spec

Save MKFDS_PID to a regular variable (MKFDS_CPID) immediately after
starting the coproc.

Additionally, add a kill -0 liveness check after reading the PID to
detect when the multiplexer process died early (e.g., due to ENOSYS)
and skip the subtest cleanly.

Signed-off-by: Karel Zak <kzak@redhat.com>
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.

1 participant