From 74f7bcd8907569d0961c4c1ad1a0733cb36eb306 Mon Sep 17 00:00:00 2001 From: jli Date: Wed, 21 Sep 2011 23:46:46 +0000 Subject: [PATCH] change ping using popen git-svn-id: http://172.17.0.253/svn/soft_pkgs/sys_nicmonitor@804 09c3743a-b0dd-45d3-b506-aa74c7a2a6ef --- branches/sys_nicmonitor-1.6/mnic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/branches/sys_nicmonitor-1.6/mnic.c b/branches/sys_nicmonitor-1.6/mnic.c index a7b8f79..ec574f2 100755 --- a/branches/sys_nicmonitor-1.6/mnic.c +++ b/branches/sys_nicmonitor-1.6/mnic.c @@ -454,7 +454,7 @@ static void *send_inc_info(void *p) while(1){ i = 0; get_sem(ptr->semid); - memset(ptr->shm_ptr, 0, sizeof(SHM)); + // memset(ptr->shm_ptr, 0, sizeof(SHM)); curr = ptr->listp->next; while(curr != NULL){ get_inc_info(&curr->info); @@ -643,7 +643,7 @@ int ping_gw(char *devname) return 0; }else{ fgets(getbuf,sizeof(getbuf),fp); - if(strncmp(getbuf,"1",1) == 0) + if(strncmp(getbuf,"0",1) != 0) { pclose(fp); return 0;