author | Florian Forster <octo@verplant.org> | |
Fri, 2 Jun 2006 17:29:15 +0000 (19:29 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Fri, 2 Jun 2006 17:29:15 +0000 (19:29 +0200) | ||
commit | 9229808c1130b5921776755dac7cac8dc1215191 | |
tree | 090dfb5cb7291d1b3b4a2d73db0ea67c2a1ca71e | tree | snapshot |
parent | 012f00bd62b031e86ab53caba102415f4b88ca79 | commit | diff |
oping: Exit if no hosts could be added.
If no hosts could be added (e.g. because resolving the hostnames failed) the
oping application didn't exit but seemed to hang. Actually it was calling
`poll' (or select?) without any file descriptors, and not outputting anything
at all.
This patch makes oping exit if no hosts could be added to the oping library.
If no hosts could be added (e.g. because resolving the hostnames failed) the
oping application didn't exit but seemed to hang. Actually it was calling
`poll' (or select?) without any file descriptors, and not outputting anything
at all.
This patch makes oping exit if no hosts could be added to the oping library.
src/oping.c | diff | blob | history |