Fix socket communication
This commit is contained in:
parent
f1870a8555
commit
d4e0f49668
@ -29,7 +29,9 @@ function pipe_backend_scheduler($instruct)
|
||||
$socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
|
||||
if (is_writable($VAR["scheduler_socket"]) && socket_connect($socket, $VAR["scheduler_socket"]))
|
||||
{
|
||||
socket_write($socket, $instruct);
|
||||
socket_write($socket, $instruct."\r\n") or die(socket_strerror(socket_last_error()));
|
||||
sleep(1);
|
||||
socket_shutdown($socket);
|
||||
socket_close($socket);
|
||||
}
|
||||
else if(defined("DEBUG") && DEBUG)
|
||||
|
Loading…
Reference in New Issue
Block a user