diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-11-27 12:44:40 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-11-27 12:44:40 +0000 |
commit | c3150e36d6e3d8392c5801a19b7f63daa5551f37 (patch) | |
tree | 6fa1e3579c275898c964dace54184116d7d256e5 /src/libs6/s6_fdholder_end.c | |
parent | b40d48d8fe2b7ff838d8e57482cd02f83987b7fd (diff) | |
download | s6-c3150e36d6e3d8392c5801a19b7f63daa5551f37.tar.xz |
Add s6_fdholder_start/end, prepare for 2.6.2.0
Diffstat (limited to 'src/libs6/s6_fdholder_end.c')
-rw-r--r-- | src/libs6/s6_fdholder_end.c | 11 |
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) ; +} |