mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +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:
@@ -1238,7 +1238,8 @@ int cmd_watch(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
|
||||
#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)
|
||||
int cmd_wait(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user