summaryrefslogtreecommitdiff
path: root/src/libs6/s6_fdholder_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6/s6_fdholder_end.c')
-rw-r--r--src/libs6/s6_fdholder_end.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs6/s6_fdholder_end.c b/src/libs6/s6_fdholder_end.c
new file mode 100644
index 0000000..7b2cb2d
--- /dev/null
+++ b/src/libs6/s6_fdholder_end.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/unixmessage.h>
+#include <s6/s6-fdholder.h>
+
+void s6_fdholder_end (s6_fdholder_t *a)
+{
+ fd_close(unixmessage_sender_fd(&a->connection.out)) ;
+ s6_fdholder_free(a) ;
+}