summaryrefslogtreecommitdiff
path: root/src/libs6/s6_dtally_unpack.c
blob: 8fca787589b38f2774fb8341da0ca2437f7146c0 (plain)
1
2
3
4
5
6
7
8
9
10
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] ;
}