diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-05-07 22:06:36 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-05-07 22:06:36 +0000 |
commit | 15e3e402c59089514f590bab8804f0ed60f0fee3 (patch) | |
tree | e29847fcb9b5e3913c3e4f83b11af62b30d225bc /src/libs6/s6_svstatus_pack.c | |
parent | b827410052a640f65650d1b72d5f63d9ada28933 (diff) | |
download | s6-15e3e402c59089514f590bab8804f0ed60f0fee3.tar.xz |
Add process group support to s6-supervise
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6/s6_svstatus_pack.c')
-rw-r--r-- | src/libs6/s6_svstatus_pack.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs6/s6_svstatus_pack.c b/src/libs6/s6_svstatus_pack.c index a769c08..5e1c7d8 100644 --- a/src/libs6/s6_svstatus_pack.c +++ b/src/libs6/s6_svstatus_pack.c @@ -11,8 +11,9 @@ void s6_svstatus_pack (char *pack, s6_svstatus_t const *sv) tain_pack(pack, &sv->stamp) ; tain_pack(pack + 12, &sv->readystamp) ; uint64_pack_big(pack + 24, (uint64_t)sv->pid) ; - uint16_pack_big(pack + 32, (uint16_t)sv->wstat) ; - pack[34] = + uint64_pack_big(pack + 32, (uint64_t)sv->pgid) ; + uint16_pack_big(pack + 40, (uint16_t)sv->wstat) ; + pack[42] = sv->flagpaused | (sv->flagfinishing << 1) | (sv->flagwantup << 2) | |