mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 11:33:33 +08:00
Fix some places in library where semaphore is not released on error conditions
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5071 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
+11
-1
@@ -3224,4 +3224,14 @@
|
||||
* sched/os_bring.c, configs/*/defconfig, tools/mkconfig.c, and others: Added
|
||||
configuration variable CONFIG_USER_ENTRYPOINT that may be used to change
|
||||
the default entry from user_start to some other symbol. Contributed by
|
||||
Kate.
|
||||
Kate. NOTE: This change does introduce a minor backward incompatibility.
|
||||
For example, if your application uses NSH as its start-up program, then your
|
||||
code will not fail because it will be unable to find "user_start". The fix
|
||||
for this link failure is to add the following to your configuration file:
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main".
|
||||
* libs/stdio/lib_libfread.c and lib_*flush*.c: Correct a couple of
|
||||
error cases where the lib semaphore was not be released on error
|
||||
exits (thanks Ronen Vainish). Also, improved some error reporting:
|
||||
the generic ERROR was being used instead of the specific errno
|
||||
value; the errno variable was not always set correctly.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user