chiark / gitweb /
util: replace close_pipe() with new safe_close_pair()
[elogind.git] / src / socket-proxy / socket-proxyd.c
index c172beb..ac47c85 100644 (file)
@@ -79,8 +79,8 @@ static void connection_free(Connection *c) {
         safe_close(c->server_fd);
         safe_close(c->client_fd);
 
-        close_pipe(c->server_to_client_buffer);
-        close_pipe(c->client_to_server_buffer);
+        safe_close_pair(c->server_to_client_buffer);
+        safe_close_pair(c->client_to_server_buffer);
 
         free(c);
 }