From 6e1f456ffddf7015ccb91c4fabc31648ad12cd31 Mon Sep 17 00:00:00 2001 From: Ermal Date: Sat, 3 Mar 2012 20:23:57 +0000 Subject: [PATCH] Correct send_multiple_events to conform with new check_reload_status behaviour --- etc/inc/util.inc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 70b862c47e..7dfdf8d189 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) {