diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-05-29 15:38:33 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-05-29 15:38:33 +0000 |
commit | cce9230665661ebcc41880119608984e06e21caf (patch) | |
tree | b4be5ee5ff84651a233ec41cc4a16a5e0e7a4ef1 /src/zabbix_agent/sysinfo.c | |
parent | ec819ed4096fce17ea7e8d17e653d6ca64e42105 (diff) | |
download | zabbix-cce9230665661ebcc41880119608984e06e21caf.tar.gz zabbix-cce9230665661ebcc41880119608984e06e21caf.tar.xz zabbix-cce9230665661ebcc41880119608984e06e21caf.zip |
Fixed function EXECUTE. netstat -at replaced by netstat -lt.
git-svn-id: svn://svn.zabbix.com/trunk@73 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent/sysinfo.c')
-rw-r--r-- | src/zabbix_agent/sysinfo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zabbix_agent/sysinfo.c b/src/zabbix_agent/sysinfo.c index 86ba4767..778126d1 100644 --- a/src/zabbix_agent/sysinfo.c +++ b/src/zabbix_agent/sysinfo.c @@ -332,7 +332,11 @@ float EXECUTE(char *command) return FAIL; } fgets(c,1024,f); - pclose(f); + + if(pclose(f) != 0) + { + return FAIL; + } sscanf(c, "%f", &result ); |