mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 10:58:51 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
8ae9329aa8
3
proc.c
3
proc.c
@ -59,7 +59,8 @@ proc_event_cb(__unused int fd, short events, void *arg)
|
||||
struct imsg imsg;
|
||||
|
||||
if (!(peer->flags & PEER_BAD) && (events & EV_READ)) {
|
||||
if ((n = imsg_read(&peer->ibuf)) == -1 || n == 0) {
|
||||
if (((n = imsg_read(&peer->ibuf)) == -1 && errno != EAGAIN) ||
|
||||
n == 0) {
|
||||
peer->dispatchcb(NULL, peer->arg);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user