summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_sender_closecb.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-02-02 23:33:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-02-02 23:33:34 +0000
commitc2e99ad0fbca5f669c76f188cff7e74681a3e683 (patch)
treeb2384eba2d369f199a7e54977f1fc2618961c88a /src/libunixonacid/unixmessage_sender_closecb.c
parent6129e14bc76488f121c4557eb477886dd9dd2926 (diff)
downloadskalibs-c2e99ad0fbca5f669c76f188cff7e74681a3e683.tar.xz
Tentative re-commit of the closecb feature
Diffstat (limited to 'src/libunixonacid/unixmessage_sender_closecb.c')
-rw-r--r--src/libunixonacid/unixmessage_sender_closecb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libunixonacid/unixmessage_sender_closecb.c b/src/libunixonacid/unixmessage_sender_closecb.c
new file mode 100644
index 0000000..1234ff5
--- /dev/null
+++ b/src/libunixonacid/unixmessage_sender_closecb.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/unixmessage.h>
+
+void unixmessage_sender_closecb (int fd, void *p)
+{
+ fd_close(fd) ;
+ (void)p ;
+}