From: Liu Yuan <tailai.ly at taobao.com> Signed-off-by: Liu Yuan <tailai.ly at taobao.com> --- sheep/sdnet.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sheep/sdnet.c b/sheep/sdnet.c index a8ea295..053ee8d 100644 --- a/sheep/sdnet.c +++ b/sheep/sdnet.c @@ -549,7 +549,7 @@ static void listen_handler(int listen_fd, int events, void *data) int fd, ret; struct client_info *ci; - if (sys->status == SD_STATUS_SHUTDOWN) { + if (sys_stat_shutdown()) { dprintf("unregistering connection %d\n", listen_fd); unregister_event(listen_fd); return; -- 1.7.6.1 |