Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nshlib/nsh_fileapps.c: Remove sched_lock() from nsh_fileapp()
Locking the scheduler prior to calling posix_spawn() might lock the scheduler for a relatively long time, if the file to be loaded is large. posix_spawn() loads the process into memory, possibly linking it as well if the binary format is linkable (elf). This can take tens / hundreds of milliseconds, which basically destroys the OS's real time performance. Missing the death-of-child signal is a very trivial penalty considering the alternative.
- Loading branch information