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:
patacongo
2012-02-11 15:58:11 +00:00
parent 592c4f7deb
commit 57ae1bb526
2 changed files with 84 additions and 6 deletions
+11
View File
@@ -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
****************************************************************************/