Code

oping: Exit if no hosts could be added.
authorFlorian Forster <octo@verplant.org>
Fri, 2 Jun 2006 17:29:15 +0000 (19:29 +0200)
committerFlorian Forster <octo@verplant.org>
Fri, 2 Jun 2006 17:29:15 +0000 (19:29 +0200)
commit9229808c1130b5921776755dac7cac8dc1215191
tree090dfb5cb7291d1b3b4a2d73db0ea67c2a1ca71e
parent012f00bd62b031e86ab53caba102415f4b88ca79
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.
src/oping.c