Fix NSH redirection hang
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3326 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
b212049ba6
commit
c99882a842
@ -8,7 +8,7 @@
|
||||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
||||
<p>Last Updated: February 27, 2011</p>
|
||||
<p>Last Updated: February 28, 2011</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2087,6 +2087,20 @@ nuttx-5.19 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* NSH: 'mem' command renamed to 'free'. Output is now more similar to the
|
||||
Linux 'free' command.
|
||||
* NSH: Correct a redirection bug in NSH. The following would not work; it
|
||||
resulted in a hang after the 'cat /dev/fifo':
|
||||
|
||||
nsh> mkfile /dev/fifo
|
||||
nsh> cd /tmp # /tmp is a mounted RAM disk
|
||||
nsh> cat /dev/fifo > test.txt &
|
||||
nsh> echo "This is a test" > /dev/fifo
|
||||
|
||||
The error was caused because (1) there was a path that resulted in stdout
|
||||
being closed (the "hang") and also (2) the 'cat' command was always outputting
|
||||
to stdout, not to the redirected file descriptor. Now:
|
||||
|
||||
nsh> cat test.txt
|
||||
This is a test
|
||||
|
||||
pascal-2.1 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user