summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_connection_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6rc/s6rc_connection_end.c')
-rw-r--r--src/libs6rc/s6rc_connection_end.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libs6rc/s6rc_connection_end.c b/src/libs6rc/s6rc_connection_end.c
new file mode 100644
index 0000000..e993881
--- /dev/null
+++ b/src/libs6rc/s6rc_connection_end.c
@@ -0,0 +1,14 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/textmessage.h>
+
+#include <s6-rc/connection-common.h>
+#include <s6-rc/connection.h>
+
+void s6rc_connection_end (s6rc_connection_t *a)
+{
+ fd_close(textmessage_sender_fd(&a->out)) ;
+ textmessage_sender_free(&a->out) ;
+ textmessage_receiver_free(&a->in) ;
+}