diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-01-18 23:56:21 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-01-18 23:56:21 +0000 |
commit | c9c7e241a7b68f67e0cc8a7d3874510dced532d6 (patch) | |
tree | b4615c00c3f3c2f7265013b153688496df21f387 /src/libunixonacid/unixmessage_sender_closecb.c | |
parent | db086527035619204569f79672b7a01fc26d8aa4 (diff) | |
download | skalibs-c9c7e241a7b68f67e0cc8a7d3874510dced532d6.tar.xz |
Add support for advanced closing callbacks to unixmessage_sender_flush.
(Typically, this will be used for refcounting when broadcasting copies of
the same fd.)
Diffstat (limited to 'src/libunixonacid/unixmessage_sender_closecb.c')
-rw-r--r-- | src/libunixonacid/unixmessage_sender_closecb.c | 10 |
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 ; +} |