s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

s6_dtally_pack.c (229B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/tai.h>
      4 #include <s6/supervise.h>
      5 
      6 void s6_dtally_pack (char *pack, s6_dtally_t const *d)
      7 {
      8   tain_pack(pack, &d->stamp) ;
      9   pack[TAIN_PACK] = d->exitcode ;
     10   pack[TAIN_PACK + 1] = d->sig ;
     11 }