[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Handling POLLHUP in evport.c
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] Handling POLLHUP in evport.c
- From: Yee Keat Phuah <ykphuah@xxxxxxxxx>
- Date: Wed, 29 Dec 2010 19:07:22 +0800
- Cc: dp.spambait@xxxxxxxxx
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 29 Dec 2010 06:07:30 -0500
- 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:cc:content-type; bh=5uM3XgpulfR7Y7j8mf2sFn76L2fF5g3otMKUT3EKGSU=; b=euVo9JyGgoht7m0v+OEd7kl3u3LxfQxFDLyp8nUvxNG+KRCPws3kDOuMJAKKVbZE6Q Blijt94s0vSoG83uvfLx8D7I67QhG4ga7zb0UyntYoyBiM5WWmj03Lbr4xAmimajRqWD LFQc2n26Lh/wVC7U7p7XFHkayy3wpdItouV0c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=sf3qYrprBm/XwsCjNMdDovDfg/agBliLITW2XQC3R+TCqGoo/3CEaCCrLrKFikFjb5 nStviR0+TnNQ4+ScAefZX4Du1IkCBlmQPf9ZA7S1G8cx6cgcPtEi1AG3DClcE9WhlHKx LW/y3zA/x3tPz88G0MqF793fu/gn2iz9IQQHs=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi,
Recently I came across a scenario where I added a unix pipe in
bufferevent, but then when the pipe is closed, I experience an
infinite loop.
This happens in Solaris 10 using evport by default.
Its traced down to evport.c:460.
Contrary to devpoll.c, epoll.c and poll.c, there's no handling of
POLLHUP, which is what I see returned in my usage of libevent, hence
the events will be 0, it then will trigger an infinite loop in the
base loop.
Putting out a test program to reproduce this will take some time,
hence I hope this is an obvious bug that the maintainer of evport.c
can respond to, from the limited information above?
Cheers,
Phuah Yee Keat
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.