author | Florian Forster <octo@verplant.org> | |
Tue, 14 Jan 2014 12:36:33 +0000 (13:36 +0100) | ||
committer | Florian Forster <octo@verplant.org> | |
Tue, 14 Jan 2014 12:36:33 +0000 (13:36 +0100) | ||
commit | 7387822550ef3fc7ce41be58b858b2379f5b94dd | |
tree | 17c5c08bc1cc50551a1fbc98baf18f9b1c64a232 | tree | snapshot |
parent | 6ae64bb46038d04830f00149171163be6cb39ecf | commit | diff |
ping_receive_all(): Return immediately when select(2) is interrupted.
Previously the function would continue and only return when all hosts
were received or a timeout occurred. This meant that hitting ^C would
only stop "oping" after half a second or so. This this, oping also exits
immediately.
Previously the function would continue and only return when all hosts
were received or a timeout occurred. This meant that hitting ^C would
only stop "oping" after half a second or so. This this, oping also exits
immediately.
src/liboping.c | diff | blob | history | |
src/oping.c | diff | blob | history |