mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 12:55:43 +08:00
nshlib/cmd_wait: Wait failed if "PROCFS/PROCES" not enabled
Env sim:nsh - CONFIG_FS_PROCFS_EXCLUDE_PROCES=y Error nsh> sleep 5 & sh [4:100] nsh> wait 4 nsh: wait: wait failed: 2 cmd_wait(): snprintf(path, sizeof(path), "/proc/%d/status", tid); Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
@@ -679,7 +679,8 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
CMD_MAP("xd", cmd_xd, 3, 3, "<hex-address> <byte-count>"),
|
||||
#endif
|
||||
#if !defined(CONFIG_NSH_DISABLE_WAIT) && defined(CONFIG_SCHED_WAITPID) && \
|
||||
!defined(CONFIG_DISABLE_PTHREAD)
|
||||
!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_FS_PROCFS) && \
|
||||
!defined(CONFIG_FS_PROCFS_EXCLUDE_PROCESS)
|
||||
CMD_MAP("wait", cmd_wait, 1, CONFIG_NSH_MAXARGUMENTS,
|
||||
"pid1 [pid2 [pid3] ...]"),
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user