Skip to content

Allow EBADF error in tcsetpgrp check#246

Open
udf2457 wants to merge 1 commit into
krallin:masterfrom
udf2457:EBADF
Open

Allow EBADF error in tcsetpgrp check#246
udf2457 wants to merge 1 commit into
krallin:masterfrom
udf2457:EBADF

Conversation

@udf2457

@udf2457 udf2457 commented Jun 23, 2026

Copy link
Copy Markdown

Only ENOTTY and ENXIO are handled. If fd 0 was closed, errno is EBADF, which hits the fatal error path and causes the child to exit with 1. Consider accepting EBADF.

Only `ENOTTY` and `ENXIO` are handled. If fd `0` was closed, errno is `EBADF`, which hits the fatal error path and causes the child to exit with `1`. Consider accepting `EBADF`.
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