[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 189762] epoll_create syscall not handled
From:       Nick Black <dankamongmen () gmail ! com>
Date:       2009-07-13 22:31:59
Message-ID: 20090713223159.6E9C314E0B () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=189762


Nick Black <dankamongmen@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dankamongmen@gmail.com




--- Comment #1 from Nick Black <dankamongmen gmail com>  2009-07-14 00:31:57 ---
Just a heads-up: there's also now epoll_create1(), which interprets the single
integer parameter as a flags argument (ala accept4() and friends):

--607-- WARNING: unhandled syscall: 291
--607-- You may be able to write your own handler.
--607-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--607-- Nevertheless we consider this a bug.  Please report
--607-- it at http://valgrind.org/support/bug_reports.html.

code:

#ifdef EPOLL_CLOEXEC
        {
                int trueflags = 0;

                if(flags & LIBDANK_EVHANDLER_CLOEXEC){
                        trueflags |= EPOLL_CLOEXEC;
                }
                if(flags & LIBDANK_EVHANDLER_NONBLOCK){
                        trueflags |= EPOLL_NONBLOCK;
                }
                if((fd = epoll_create1(trueflags)) < 0){
                        moan("Couldn't create epoll fd with flags %x\n",flags);
                        return NULL;
                }
        }
#else

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic