mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 07:23:34 +08:00
Fix read() return value for the case of permissions problem
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4545 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -123,7 +123,7 @@ int sched_setupidlefiles(FAR _TCB *tcb)
|
||||
* it and got some file descriptor other than 0.
|
||||
*/
|
||||
|
||||
if (fd >- 0)
|
||||
if (fd > 0)
|
||||
{
|
||||
slldbg("Open /dev/console fd: %d\n", fd);
|
||||
(void)close(fd);
|
||||
|
||||
Reference in New Issue
Block a user