Seems like a bug, but not sure I entirely understand: there may be some edge conditions where data specified in the "data" field of the epoll_event structure via epoll_ctl() is not properly returned, but it's not true that SmartOS simply ignores it. Take, for example, the following program:
https://us-east.manta.joyent.com/bcantrill/public/epoll_add.c (It's essentially the most basic possible use of epoll(5).) Compiling that program and running it yields (for me, anyway) the same result on SmartOS as it does on Linux: $ ./epoll_add writing to pipe adding event... parent: got an event on fd 4 I certainly don't doubt that there's a bug here -- I just don't think it's quite as broad as you're implying; could you point me to the core file for Samba and/or instructions as to how to reproduce the issue? - Bryan On Wed, Jul 30, 2014 at 2:08 PM, Youzhong Yang via smartos-discuss < [email protected]> wrote: > Hi All, > > The man page of epoll_ctl says: > > The data field specifies the datum to be associated with the > event and will be returned via epoll_wait(3C). The events field > denotes both the desired events (when specified via epoll_ctl()) > and the events that have occurred (when returned via > epoll_wait(3C)). > > This does not seem to be the case and is not compatible with Linux's > implementation. Recently I tried to compile Samba 4.1.10 on smartos and > 'net ads join' just crashes. Samba uses epoll_event.data.ptr to keep track > of its tevent_fd data but epoll_ctl() on smartos simply ignores it and does > not keep a copy of the 'data' structure and returns it when epoll_wait is > called. > > Can I assume this is an implementation specific bug? > > Thanks, > > -Youzhong > *smartos-discuss* | Archives > <https://www.listbox.com/member/archive/184463/=now> > <https://www.listbox.com/member/archive/rss/184463/21493597-819305a5> | > Modify > <https://www.listbox.com/member/?&> > Your Subscription <http://www.listbox.com> > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
