[Sheepdog] [PATCH] sheep: use sys_stat_* helper for status check

Liu Yuan namei.unix at gmail.com
Tue Nov 15 04:28:32 CET 2011


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




More information about the sheepdog mailing list