fix to use relative socket path
This commit is contained in:
@@ -97,6 +97,7 @@ pub fn init_client<S>(socket_addr: &str) -> Result<GuardedSocket<S>, SocketError
|
||||
SocketError::RequestLink
|
||||
}));
|
||||
|
||||
trace!(target: "ipc", "Created cleint for {}", socket_addr);
|
||||
Ok(GuardedSocket {
|
||||
client: Arc::new(S::init(socket)),
|
||||
_endpoint: endpoint,
|
||||
@@ -189,6 +190,8 @@ impl<S: ?Sized> Worker<S> where S: IpcInterface {
|
||||
|
||||
self.rebuild_poll_request();
|
||||
|
||||
trace!(target: "ipc", "Started duplex worker at {}", addr);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -200,6 +203,7 @@ impl<S: ?Sized> Worker<S> where S: IpcInterface {
|
||||
SocketError::DuplexLink
|
||||
}));
|
||||
|
||||
|
||||
let endpoint = try!(socket.bind(addr).map_err(|e| {
|
||||
warn!(target: "ipc", "Failed to bind socket to address '{}': {:?}", addr, e);
|
||||
SocketError::DuplexLink
|
||||
@@ -209,6 +213,7 @@ impl<S: ?Sized> Worker<S> where S: IpcInterface {
|
||||
|
||||
self.rebuild_poll_request();
|
||||
|
||||
trace!(target: "ipc", "Started request-reply worker at {}", addr);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user