diff options
author | Ermal <eri@pfsense.org> | 2012-03-03 20:23:57 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-03-03 20:23:57 +0000 |
commit | 6e1f456ffddf7015ccb91c4fabc31648ad12cd31 (patch) | |
tree | caae2d31ffd76232bef6f328f4a418fc8c915fee /etc/inc/util.inc | |
parent | bfe407e5a2184d0cceeb2349eb1408b4f28029eb (diff) | |
download | pfsense-6e1f456ffddf7015ccb91c4fabc31648ad12cd31.zip pfsense-6e1f456ffddf7015ccb91c4fabc31648ad12cd31.tar.gz |
Correct send_multiple_events to conform with new check_reload_status behaviour
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 70b862c..7dfdf8d 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -166,16 +166,9 @@ function send_multiple_events($cmds) { if (!is_array($cmds)) return; - $fd = fsockopen($g['event_address']); - if ($fd) { - foreach ($cmds as $cmd) { - fwrite($fd, $cmd); - $resp = fread($fd, 4096); - if ($resp != "OK\n") - log_error("send_event: sent {$cmd} got {$resp}"); - } - fclose($fd); - } + + foreach ($cmds as $cmd) + send_event($cmd); } function refcount_init($reference) { |