summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index f9d1e237..7bfb8916 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -131,13 +131,10 @@ cmd_run_shell_free(void *data)
{
struct cmd_run_shell_data *cdata = data;
struct cmd_ctx *ctx = &cdata->ctx;
- struct msg_exit_data exitdata;
if (ctx->cmdclient != NULL) {
ctx->cmdclient->references--;
- exitdata.retcode = ctx->cmdclient->retcode;
- server_write_client(
- ctx->cmdclient, MSG_EXIT, &exitdata, sizeof exitdata);
+ ctx->cmdclient->flags |= CLIENT_EXIT;
}
if (ctx->curclient != NULL)
ctx->curclient->references--;