aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/libglouglou.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglouglou/libglouglou.c')
-rw-r--r--libglouglou/libglouglou.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libglouglou/libglouglou.c b/libglouglou/libglouglou.c
index aa50611..c2c284a 100644
--- a/libglouglou/libglouglou.c
+++ b/libglouglou/libglouglou.c
@@ -490,6 +490,11 @@ pkt_decode(char **buf, int *buf_len)
strncpy((char *)newpkt.exec_cmd, (char *)pkt->exec_cmd,
newpkt.exec_cmdlen);
break;
+ case PACKET_EXIT:
+ newpkt.exit_pid = ntohl(pkt->exit_pid);
+ newpkt.exit_tgid = ntohl(pkt->exit_tgid);
+ newpkt.exit_ecode = pkt->exit_ecode;
+ break;
default:
goto invalid;
invalid("type switch");
@@ -565,6 +570,11 @@ pkt_encode(struct gg_packet *pkt, int *len)
strncpy((char *)newpkt.exec_cmd, (char *)pkt->exec_cmd,
pkt->exec_cmdlen);
break;
+ case PACKET_EXIT:
+ newpkt.exit_pid = htonl(pkt->exit_pid);
+ newpkt.exit_tgid = htonl(pkt->exit_tgid);
+ newpkt.exit_ecode = pkt->exit_ecode;
+ break;
default:
error("Unsupported packet type");
return NULL;