[Sheepdog] [PATCH] sheep: fix epoll_wait infinite loop

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Wed Apr 25 18:55:07 CEST 2012


At Wed, 25 Apr 2012 17:23:58 +0800,
Yunkai Zhang wrote:
> 
> From: Yunkai Zhang <qiushu.zyk at taobao.com>
> 
> Add code to handle EPOLLERR and EPOLLHUP events in client_handler,
> otherwise epoll_wait would run into infinite loop when these events
> occur.
> 
> Signed-off-by: Yunkai Zhang <qiushu.zyk at taobao.com>
> ---
>  sheep/sdnet.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list