diff options
Diffstat (limited to 'src/libs6/s6_dtally_pack.c')
-rw-r--r-- | src/libs6/s6_dtally_pack.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs6/s6_dtally_pack.c b/src/libs6/s6_dtally_pack.c new file mode 100644 index 0000000..1608e78 --- /dev/null +++ b/src/libs6/s6_dtally_pack.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include <skalibs/tai.h> +#include <s6/s6-supervise.h> + +void s6_dtally_pack (char *pack, s6_dtally_t const *d) +{ + tain_pack(pack, &d->stamp) ; + pack[TAIN_PACK] = d->exitcode ; + pack[TAIN_PACK + 1] = d->sig ; +} |