author | Florian Forster <ff@octo.it> | |
Wed, 7 Sep 2011 01:08:32 +0000 (21:08 -0400) | ||
committer | Florian Forster <ff@octo.it> | |
Wed, 7 Sep 2011 01:08:32 +0000 (21:08 -0400) | ||
commit | 441f2f6f137275321d6bb3d8bfb35f414c580ab6 | |
tree | 59108364c1ddca34dccba4ff0864bf6c4363a28a | tree | snapshot |
parent | da49de54bda467c696f4446e6cdfdd8960ca78ed | commit | diff |
oping: Make the exit status the number of hosts failed.
As far as I know, EXIT_FAILURE is only portable when used as-is, i.e. without
adding anything to it. Especially with "EXIT_FAILURE == -1" we might run into
trouble. I think it's more convenient to just use the number of failed hosts
rather than 1+<num> (on Linux).
As far as I know, EXIT_FAILURE is only portable when used as-is, i.e. without
adding anything to it. Especially with "EXIT_FAILURE == -1" we might run into
trouble. I think it's more convenient to just use the number of failed hosts
rather than 1+<num> (on Linux).
src/mans/oping.pod | diff | blob | history | |
src/oping.c | diff | blob | history |