summaryrefslogtreecommitdiffstats
path: root/qarshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'qarshd.c')
-rw-r--r--qarshd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qarshd.c b/qarshd.c
index 345f6de..ec5d1f7 100644
--- a/qarshd.c
+++ b/qarshd.c
@@ -275,6 +275,7 @@ handle_packets(int infd)
if (child_exitted) {
waitpid(child_pid, &child_status, 0);
child_exitted--;
+ child_pid = 0;
rp = make_qp_cmdexit(child_pid, child_status);
send_packet(fileno(stdout), rp);
qpfree(rp);