From 26c5fee82736e56cff3d114ff9d6e3969d1ce061 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 20 Mar 2018 14:52:26 +0000 Subject: Add death tally support to s6-supervise, throttling support to s6_svstatus_t --- src/libs6/s6_dtally_unpack.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/libs6/s6_dtally_unpack.c (limited to 'src/libs6/s6_dtally_unpack.c') diff --git a/src/libs6/s6_dtally_unpack.c b/src/libs6/s6_dtally_unpack.c new file mode 100644 index 0000000..8fca787 --- /dev/null +++ b/src/libs6/s6_dtally_unpack.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include +#include + +void s6_dtally_unpack (char const *pack, s6_dtally_t *d) +{ + tain_unpack(pack, &d->stamp) ; + d->exitcode = pack[TAIN_PACK] ; + d->sig = pack[TAIN_PACK + 1] ; +} -- cgit v1.2.3