~sircmpwn/mrsh

45a980b78cfd260cecb6ad1414a17271fcf50a6a — Simon Ser 6 months ago 2fc5bbe
shell/task: fix background tasks making the shell exit
1 files changed, 1 insertions(+), 1 deletions(-)

M shell/task/task.c
M shell/task/task.c => shell/task/task.c +1 -1
@@ 288,7 288,7 @@ int run_command_list_array(struct context *ctx, struct mrsh_array *array) {
			struct context child_ctx = *ctx;
			child_ctx.background = true;

			pid_t pid = subshell_fork(ctx, NULL);
			pid_t pid = subshell_fork(&child_ctx, NULL);
			if (pid < 0) {
				return TASK_STATUS_ERROR;
			} else if (pid == 0) {