buxiasen 790be6d639 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>
2024-10-22 00:04:09 +08:00
..
2024-10-17 18:06:32 +08:00
2023-09-21 10:48:29 +08:00
2024-08-08 19:19:18 -03:00
2023-05-08 21:35:16 +03:00
2024-10-17 18:06:32 +08:00
2023-05-08 21:35:16 +03:00
2024-10-17 18:06:32 +08:00