From 341fb40c9551de0dbb855699ecec37b335829f21 Mon Sep 17 00:00:00 2001 From: xyz Date: Wed, 23 Aug 2023 13:58:09 +0800 Subject: [PATCH] [smart][fix] lwp fork with data copy --- components/lwp/lwp_syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c index 8962410fbd..8f7a3c3c26 100644 --- a/components/lwp/lwp_syscall.c +++ b/components/lwp/lwp_syscall.c @@ -1721,6 +1721,7 @@ static void lwp_struct_copy(struct rt_lwp *dst, struct rt_lwp *src) dst->args = src->args; dst->leader = 0; dst->session = src->session; + dst->background = src->background; dst->tty_old_pgrp = 0; dst->__pgrp = src->__pgrp; dst->tty = src->tty;