diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-31 16:13:00 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-31 16:13:00 +0000 |
| commit | 1da8142f324d6011a60c19b77be24a6faf00180e (patch) | |
| tree | b318118381ba62b98a7d574fa0ee5ffb4feac483 /input.c | |
| parent | slave: user-notifications: don't block in write(3) (diff) | |
slave: restore pts file status flags after emitting user-notifications
We (need to) set O_NONBLOCK on the pts file description before
emitting the user-notifications, to ensure we don't block in write(3).
However, since file status flags are per *file*, not per
file *descriptor*, this ends up setting O_NONBLOCK on the dup:ed
stdin/stdout/stderr file descriptors too.
Not all clients want this, or can handle this.
Thus we need to restore the original flags before exec:ing the client.
This fixes "makepkg" build failures.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions
