diff options
Diffstat (limited to 'src/ipc')
| -rw-r--r-- | src/ipc/server.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipc/server.rs b/src/ipc/server.rs index 5b614a83..5d2c8524 100644 --- a/src/ipc/server.rs +++ b/src/ipc/server.rs @@ -132,7 +132,8 @@ async fn handle_client(ctx: ClientCtx, stream: Async<'_, UnixStream>) -> anyhow: } } - let buf = serde_json::to_vec(&reply).context("error formatting reply")?; + let mut buf = serde_json::to_vec(&reply).context("error formatting reply")?; + buf.push(b'\n'); write.write_all(&buf).await.context("error writing reply")?; Ok(()) |
