mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-25 16:19:02 +01:00
OS X stupid poll fix.
This commit is contained in:
parent
ed26a1d3bb
commit
3f7e2589cd
4
client.c
4
client.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: client.c,v 1.64 2009-08-14 21:26:07 tcunha Exp $ */
|
/* $Id: client.c,v 1.65 2009-08-19 08:36:45 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -190,8 +190,10 @@ client_main(struct client_ctx *cctx)
|
|||||||
if (nfds == 0)
|
if (nfds == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef HAVE_POLL
|
||||||
if (pfd.revents & (POLLERR|POLLHUP|POLLNVAL))
|
if (pfd.revents & (POLLERR|POLLHUP|POLLNVAL))
|
||||||
fatalx("socket error");
|
fatalx("socket error");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (pfd.revents & POLLIN) {
|
if (pfd.revents & POLLIN) {
|
||||||
if (client_msg_dispatch(cctx) != 0)
|
if (client_msg_dispatch(cctx) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user