]> git.ipfire.org Git - thirdparty/systemd.git/commit
ptyfwd: do not try to read from PTYForward.input_fd when read-only mode
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Aug 2025 06:46:04 +0000 (15:46 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 18 Aug 2025 12:05:12 +0000 (13:05 +0100)
commit73c4350fdae90a0f2988d0733c10f30b74cadf5b
tree27603b630b02d69df27802d7d04d6e766761acfb
parentb5be05a106a205e845556442b28ff8262ad08e2c
ptyfwd: do not try to read from PTYForward.input_fd when read-only mode

Fixes the following error message (the last line):
```
[FAILED] Failed to start TEST-60-MOUNT-RATELIMIT.service.
Sending SIGTERM to remaining processes...
Sending SIGKILL to remaining processes...
All filesystems, swaps, loop devices, MD devices and DM devices detached.
Exiting container.
Failed to read from pty input fd: Bad file descriptor
```

Follow-up for b823809bca6cd531a54fcf0f02427aea7cd3e651 and
cf89e48028ed3b651f63ba624175394c3c0d8efa.
src/shared/ptyfwd.c