mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-11 09:40:05 -04:00
commit
25e6f5efaf
1 changed files with 3 additions and 1 deletions
|
|
@ -139,8 +139,10 @@ try_again:
|
|||
if((ps_fd = open(ps_name, O_RDONLY)) == -1)
|
||||
continue;
|
||||
|
||||
if((as_fd = open(as_name, O_RDONLY)) == -1)
|
||||
if((as_fd = open(as_name, O_RDONLY)) == -1) {
|
||||
close(ps_fd);
|
||||
continue;
|
||||
}
|
||||
|
||||
if(read(ps_fd, &psinfo, sizeof(psinfo)) != sizeof(psinfo)) {
|
||||
int err = errno;
|
||||
|
|
|
|||
Loading…
Reference in a new issue