aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-31 15:15:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-31 15:15:51 +0000
commita7d21c5c7f02241732818d747d4ee27f54a65c5f (patch)
tree553745eba0e8fa879daf2e552338eab9ff25c8cd /render.c
parentslave: 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 'render.c')
0 files changed, 0 insertions, 0 deletions