diff --git a/src/exec.c b/src/exec.c index aabbf0e..348cbe7 100644 --- a/src/exec.c +++ b/src/exec.c @@ -75,8 +75,6 @@ static void pts_hup(struct hyper_event *de, int efd, struct hyper_exec *exec) hyper_event_hup(de, efd); - hyper_send_exec_eof(exec, 0); - hyper_release_exec(exec, pod); } @@ -654,6 +652,8 @@ int hyper_release_exec(struct hyper_exec *exec, list_del_init(&exec->list); + hyper_send_exec_eof(exec, 0); + hyper_send_exec_code(exec, 0); fprintf(stdout, "%s exit code %" PRIu8"\n", __func__, exec->code);