Fix epoll-before-listen bug (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Sep 2016 19:09:04 +0000 (15:09 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 6 Sep 2016 13:26:23 +0000 (09:26 -0400)
commit58ca0d439a3b0b4c3915f0fc6e811f617d9f2574
tree82845dae98458ad8c40b25fc4e2d65ee3d8d5a16
parentc9e3a91ac6637fd965a8401c70a23e95f6f46f61
Fix epoll-before-listen bug (XCC)

Previously, if you added a socket FD (a.k.a. a rock) to an epoll set before
you called listen(), then we'd tap the data FD instead of the listen FD.

Rebuild glibc and any apps using epoll/select (e.g. dropbear).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/listen.c
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/plan9_sockets.c
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/sys/plan9_helpers.h
user/iplib/epoll.c