[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] registering the same filehandle with EV_READ (without EV_PERSIST) multiple times
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] registering the same filehandle with EV_READ (without EV_PERSIST) multiple times
- From: Péter Szabó <ptspts@xxxxxxxxx>
- Date: Sat, 24 Apr 2010 14:39:22 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Sat, 24 Apr 2010 08:39:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=X9HQggAw2Vg21i7GHmRlIuXzNmcphokNNZ1Lrxi94kw=; b=lbF+dcvf00sYe4/nkyJzlpM0cSh8xQISNythtAG2wakO7/AzTJX+vSZbFAZeIf2kKf NxELvBmZRsabufdsOOAMPCfOb309ZxGHTt21YnQVX96Qu5BTKJPJNP6TmdrnSZKvJuvT 6L+GXPxY21N0KKwgpsi9isrJXBwuxknIXHMLM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ePcFNi4tzMtTVFrWIn11G1xsAj90kUtNczetmeh5oA9UVJ3Ic8ZmUlc1VfBIHsOAGV oSgJMo7rqwaPrZsks8yaBWx0BVHn4zQl1Ooj+QxIGWcmZe1Z3gJaTuis4o7aq5gGif1u pBPlg/Y2tpIqrpe3ZuAjdv4+i4LGsCQbEpRHk=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi,
I'd like to register two struct event's for the same filehandle, with
EV_READ (without EV_PERSIST), with multiple callbacks, and whenever
the file becomes readable, I'd like to get both of my callbacks be
called. This doesn't seem to work with Linux and epoll() and libevent
1.4.13. Only the first handler gets called, and then libevent calls
epoll_ctl(4, EPOLL_CTL_DEL, 3, {EPOLLIN, {u32=3, u64=3}}) = 0. How do
I get both callbacks to be called?
Thanks,
Péter
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.