mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correct send_multiple_events to conform with new check_reload_status behaviour
This commit is contained in:
parent
bfe407e5a2
commit
6e1f456ffd
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user