Code

ping_receive_all(): Return immediately when select(2) is interrupted.
authorFlorian Forster <octo@verplant.org>
Tue, 14 Jan 2014 12:36:33 +0000 (13:36 +0100)
committerFlorian Forster <octo@verplant.org>
Tue, 14 Jan 2014 12:36:33 +0000 (13:36 +0100)
commit7387822550ef3fc7ce41be58b858b2379f5b94dd
tree17c5c08bc1cc50551a1fbc98baf18f9b1c64a232
parent6ae64bb46038d04830f00149171163be6cb39ecf
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.
src/liboping.c
src/oping.c