aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-03 21:06:30 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-03 21:06:30 +0000
commit83f5581da4e4c13bb80e3acf048bb18e7d6c98f3 (patch)
tree246556fdd31fa129da84b3a92393ad9c72c3988f /server.c
parent884ebb6dabe265ff67cfc75201263b3f3ef8ec99 (diff)
downloadrtmux-83f5581da4e4c13bb80e3acf048bb18e7d6c98f3.tar.gz
rtmux-83f5581da4e4c13bb80e3acf048bb18e7d6c98f3.tar.bz2
rtmux-83f5581da4e4c13bb80e3acf048bb18e7d6c98f3.zip
Sync OpenBSD patchset 313:
Fix a race condition when asking a client to take over the terminal (switching to a different poll loop): If a MSG_READY was followed very quickly by a MSG_EXIT (for example if doing "tmux new 'exit'"), both messages could be read as part of the same imsg_read in the first client poll loop. The MSG_READY would then cause a switch to the second client loop, which would immediately call poll(2) again, causing the client to hang forever waiting for an exit message that it already had. Change to call imsg_get to process any existing messages before polling.
Diffstat (limited to 'server.c')
0 files changed, 0 insertions, 0 deletions