mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 06:03:33 +08:00
The RAM log cannot block like more character drivers, otherwise cat /dev/syslog does not work
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4383 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -102,6 +102,17 @@
|
||||
# define CONFIG_RAMLOG_CONSOLE_BUFSIZE 1024
|
||||
#endif
|
||||
|
||||
/* The normal behavior of the RAM log when used as a SYSLOG is to return
|
||||
* end-of-file if there is no data in the RAM log (rather than blocking until
|
||||
* data is available). That allows you to cat the SYSLOG with no ill
|
||||
* consequences.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SYSLOG
|
||||
# undef CONFIG_RAMLOG_NONBLOCKING
|
||||
# define CONFIG_RAMLOG_NONBLOCKING 1
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user