[Xcb] [PATCH] xcb_disconnect: call shutdown() to force a disconnect
Aaron Plattner
aplattner at nvidia.com
Sun Aug 15 23:53:03 PDT 2010
On Sun, Aug 15, 2010 at 11:03:42PM -0700, Ulrich Eckhardt wrote:
> On Monday 16 August 2010 04:19:28 Aaron Plattner wrote:
> > + shutdown(c->fd, 2);
>
> Magic number, use the SHUT_{RD,WR,RDWR} macros instead.
The man page says that those were introduced in glibc-2.1.91. Is that
sufficiently ancient? I thought shutdown(fd, 2) was the canonical way to
do it in portable code.
-- Aaron
More information about the Xcb
mailing list