]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
tools/netconsole: make a bit more robust
authorMike Frysinger <vapier@gentoo.org>
Wed, 9 Sep 2009 16:20:20 +0000 (12:20 -0400)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:26 +0000 (09:04 -0500)
commit9914be9dee28adf70dbfceeb62ec51d23ce096fc
tree8c7d1a8e9a1f06e9c9f3d41bbf0219eabd22d0b7
parent85c735f9a57f0694266ffea00a4d5f8f4e2bacda
tools/netconsole: make a bit more robust

The netcat utility likes to exit when it receives an empty packet (as it
thinks this means EOF).  This can easily occur when working with command
line editing as this behavior will be triggered when using backspace.  Or
with tabs and command line completion.  So create two netcat processes -
one to only listen (and put it into a loop), and one to do the sending.
Once the user quits the transmitting netcat, the listening one will be
killed automatically.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
tools/netconsole