mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-23 12:56:14 +01:00
Fixed OCaml Address in use
This commit is contained in:
parent
a0736ce4e1
commit
d01ed36a27
@ -65,7 +65,11 @@ let bind_socket ~socket_type ~socket ~port =
|
|||||||
let filename =
|
let filename =
|
||||||
Printf.sprintf "/tmp/qp_run:%d" port
|
Printf.sprintf "/tmp/qp_run:%d" port
|
||||||
in
|
in
|
||||||
Sys.remove filename;
|
begin
|
||||||
|
match Sys.file_exists filename with
|
||||||
|
| `Yes -> Sys.remove filename
|
||||||
|
| _ -> ()
|
||||||
|
end;
|
||||||
ZMQ.Socket.bind socket ("ipc://"^filename)
|
ZMQ.Socket.bind socket ("ipc://"^filename)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user