classification
Title: Check errno of epoll_ctrl
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: shaovie
Priority: normal Keywords:

Created on 2009-09-09 02:13 by shaovie, last changed 2010-07-11 09:36 by BreamoreBoy.

Messages (1)
msg92441 - (view) Author: shaowei.cui (shaovie) Date: 2009-09-09 02:13
in selectmodule.c, I found the code of epoll module
'        result = epoll_ctl(epfd, op, fd, &ev);
        if (errno == EBADF) {
            /* fd already closed */
            result = 0;
            errno = 0;
        }
'
'man epoll_ctl' show 'EBADF  epfd or fd is not a valid file
descriptor.', assume I register an fd of 'open('xxx', O_RDONLY)', return
value will be -1, errno will be EBADF,  
epoll not support 'file descriptors.' as i know,  or i register an fd
was not be opened.
History
Date User Action Args
2010-07-11 09:36:58BreamoreBoysetstage: test needed
versions: + Python 2.7, Python 3.2
2009-09-09 02:13:09shaoviecreate