diff --git a/nshlib/nsh_fileapps.c b/nshlib/nsh_fileapps.c index 804c0062da..e279ea2d42 100644 --- a/nshlib/nsh_fileapps.c +++ b/nshlib/nsh_fileapps.c @@ -159,12 +159,6 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, } #endif - /* Lock the scheduler in an attempt to prevent the application from - * running until waitpid() has been called. - */ - - sched_lock(); - /* Execute the program. posix_spawnp returns a positive errno value on * failure. */ @@ -296,8 +290,6 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, #endif /* !CONFIG_SCHED_WAITPID || !CONFIG_NSH_DISABLEBG */ } - sched_unlock(); - /* Free attributes and file actions. Ignoring return values in the case * of an error. */