Ticket #43232: patch-cacti-r7304.diff

File patch-cacti-r7304.diff, 587 bytes (added by jul_bsd@…, 10 years ago)
  • lib/ping.php

     
    376376                                socket_write($this->socket, $this->request, $this->request_len);
    377377
    378378                                /* get the socket response */
    379                                 switch(socket_select($r = array($this->socket), $w = NULL, $f = NULL, $to_sec, $to_usec)) {
     379                                $w = $f = array();
     380                                $r = array($this->socket);
     381                                switch(socket_select($r, $w, $f, $to_sec, $to_usec)) {
    380382                                case 2:
    381383                                        /* connection refused */
    382384                                        $error = "refused";