summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/gwlb.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index 9f8ca94..05a0025 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -323,13 +323,13 @@ function get_dpinger_status($gwname, $detailed = false) {
$proc = $running_processes[$gwname];
unset($running_processes);
- if (!file_exists($proc['socket'])) {
- log_error("dpinger: status socket {$proc['socket']} not found");
- return false;
- }
$timeoutcounter = 0;
while (true) {
- $fp = stream_socket_client("unix://{$proc['socket']}", $errno, $errstr, 10);
+ if (!file_exists($proc['socket'])) {
+ log_error("dpinger: status socket {$proc['socket']} not found");
+ return false;
+ }
+ $fp = @stream_socket_client("unix://{$proc['socket']}", $errno, $errstr, 10);
if (!$fp) {
log_error(sprintf(gettext('dpinger: cannot connect to status socket %1$s - %2$s (%3$s)'), $proc['socket'], $errstr, $errno));
return false;
OpenPOWER on IntegriCloud