epoll not working with kamikaze 220.127.116.11
|Reported by:||aeh@…||Owned by:||developers|
I am using kamikaze r7476 with linux 2.6.21 on Asus WL-500 GP
my program is using epoll for async i/o events, but it is not working on openwrt.
the problem is that the file descriptor is bogus on the returned event.
when epoll_wait() returns, the first struct epoll_event contains the correct
.events (which is EPOLLIN) but the .data.fd is wrong. this value is supposed to be the
same value as specified when doing epoll_ctl(EPOLL_CTL_ADD)
running a testprogram on the asus, and pressing a key gives this:
event 0x00000001 on fd=715816960
-> the "fd" is supposed to be "0" (i.e. STDIN_FILENO)
I am attaching a small test program to reproduce the bug.
Change History (12)
Changed 9 years ago by aeh@…
comment:7 Changed 8 years ago by aeh@…
- Resolution fixed deleted
- Status changed from closed to reopened
comment:10 Changed 8 years ago by florian
- Resolution set to fixed
- Status changed from reopened to closed