summaryrefslogtreecommitdiff
path: root/src/libs6/s6_dtally_unpack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6/s6_dtally_unpack.c')
-rw-r--r--src/libs6/s6_dtally_unpack.c11
1 files changed, 11 insertions, 0 deletions
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 <skalibs/tai.h>
+#include <s6/s6-supervise.h>
+
+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] ;
+}