.ruby-version
author |
Mahlon E. Smith <mahlon@martini.nu> |
|
Tue, 27 Mar 2018 14:27:31 -0700 |
changeset 5 |
6cf2c60c80f7 |
parent 3 |
1c195ed0a049
|
permissions |
-rw-r--r-- |
Provide fping addresses via pipe, instead of an argument list.
#exec_arguments defaults to a no-op, but #exec_input does not. This
means that exec_callbacks modules that do no use #exec_input need to
define a no-op themselves, as the default will still try to write data
to stdin. (This may be addressed in the monitor at some point, it is a
bit of a gotcha.)
Rather than define an empty #exec_input method, make a functional one,
and remove #exec_arguments. This will fare better if the input list is
excessively long anyway, and it fixes Error::EPIPE.