Regarding this bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=306517

I believe that the manual page probably correctly documents the 
intended behaviour, but the implementation is wrong.  In
fs/eventpoll.c::sys_epoll_ctl(), I believe the following:

   error = -EFAULT;
   if (EP_OP_HASH_EVENT(op) &&
          copy_from_user(&epds, event, sizeof(struct epoll_event)))
     goto eexit_1;


Should be guarded by something like

  if (op != EPOLL_CTL_DEL)

But hopefully Davide (the implementer) can shed some light.

Cheers,

Michael

-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 

Want to help with man page maintenance?  Grab the latest
tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.

Please submit non-trivial man page suggestions as 
"diff -u" patches.

Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to