summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-03-03 20:23:57 +0000
committerErmal <eri@pfsense.org>2012-03-03 20:23:57 +0000
commit6e1f456ffddf7015ccb91c4fabc31648ad12cd31 (patch)
treecaae2d31ffd76232bef6f328f4a418fc8c915fee
parentbfe407e5a2184d0cceeb2349eb1408b4f28029eb (diff)
downloadpfsense-6e1f456ffddf7015ccb91c4fabc31648ad12cd31.zip
pfsense-6e1f456ffddf7015ccb91c4fabc31648ad12cd31.tar.gz
Correct send_multiple_events to conform with new check_reload_status behaviour
-rw-r--r--etc/inc/util.inc13
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) {
OpenPOWER on IntegriCloud