diff options
| author | Jan Wagner <waja@cyconet.org> | 2015-10-13 11:15:20 +0200 |
|---|---|---|
| committer | Jan Wagner <waja@cyconet.org> | 2015-10-13 11:15:20 +0200 |
| commit | 25e6f5efafe99517265964c22bf49da74b5ab2de (patch) | |
| tree | 1f1bfb00007933638b4c0e761324354b6be614bc | |
| parent | 11c5796d0a3ac3cb9ccbf004f67ebf6eabcc95bc (diff) | |
| parent | d077d64e54c6162e410c4227fd75d090758594ea (diff) | |
| download | monitoring-plugins-25e6f5e.tar.gz | |
Merge branch 'check_proc_1203'
(Closes #1371)
(Closes #1203)
| -rw-r--r-- | plugins-root/pst3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins-root/pst3.c b/plugins-root/pst3.c index ee9d108d..c3589f0a 100644 --- a/plugins-root/pst3.c +++ b/plugins-root/pst3.c | |||
| @@ -139,8 +139,10 @@ try_again: | |||
| 139 | if((ps_fd = open(ps_name, O_RDONLY)) == -1) | 139 | if((ps_fd = open(ps_name, O_RDONLY)) == -1) |
| 140 | continue; | 140 | continue; |
| 141 | 141 | ||
| 142 | if((as_fd = open(as_name, O_RDONLY)) == -1) | 142 | if((as_fd = open(as_name, O_RDONLY)) == -1) { |
| 143 | close(ps_fd); | ||
| 143 | continue; | 144 | continue; |
| 145 | } | ||
| 144 | 146 | ||
| 145 | if(read(ps_fd, &psinfo, sizeof(psinfo)) != sizeof(psinfo)) { | 147 | if(read(ps_fd, &psinfo, sizeof(psinfo)) != sizeof(psinfo)) { |
| 146 | int err = errno; | 148 | int err = errno; |
