-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nshlib/nsh_parse: use sh -c replace pthread detach when nsh background.
pthread & detach will still quit when parent task exit, cause nsh_parse clone args leak. nsh should use task instead of thread this case can reproduce the memory leak. int main(int argc, FAR char *argv[]) { printf("Hello, World!!\n"); system("sleep 1 &"); return 0; } Signed-off-by: buxiasen <buxiasen@xiaomi.com>
- Loading branch information
1 parent
ec458f0
commit 790be6d
Showing
1 changed file
with
52 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters