diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-31 15:15:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-31 15:15:51 +0000 |
| commit | a7d21c5c7f02241732818d747d4ee27f54a65c5f (patch) | |
| tree | 553745eba0e8fa879daf2e552338eab9ff25c8cd /scripts | |
| parent | slave: user-notifications: emit errors first, then warnings and last deprecations (diff) | |
slave: user-notifications: don't block in write(3)
The main process is blocking and waiting for us to close the error
pipe (in exec(3), via O_CLOEXEC).
Thus, pts data will *not* be processed until we've exec:d the shell.
Because of this we must not write too much and block in write(3). Do
this by setting O_NONBLOCK on the pts fd (*after* dup:ing it to
stdin/stderr/sdout) and watch for EAGAIN EWOULDBLOCK.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
