Revision 8db165b3

b/main-loop.c
333 333
        GPollFD *pfd = &g_array_index(pollfds, GPollFD, i);
334 334
        int fd = pfd->fd;
335 335
        int events = pfd->events;
336
        if (events & (G_IO_IN | G_IO_HUP | G_IO_ERR)) {
336
        if (events & G_IO_IN) {
337 337
            FD_SET(fd, rfds);
338 338
            nfds = MAX(nfds, fd);
339 339
        }
340
        if (events & (G_IO_OUT | G_IO_ERR)) {
340
        if (events & G_IO_OUT) {
341 341
            FD_SET(fd, wfds);
342 342
            nfds = MAX(nfds, fd);
343 343
        }
......
360 360
        int revents = 0;
361 361

  
362 362
        if (FD_ISSET(fd, rfds)) {
363
            revents |= G_IO_IN | G_IO_HUP | G_IO_ERR;
363
            revents |= G_IO_IN;
364 364
        }
365 365
        if (FD_ISSET(fd, wfds)) {
366
            revents |= G_IO_OUT | G_IO_ERR;
366
            revents |= G_IO_OUT;
367 367
        }
368 368
        if (FD_ISSET(fd, xfds)) {
369 369
            revents |= G_IO_PRI;

Also available in: Unified diff