]> 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)
committerWolfgang Denk <wd@denx.de>
Tue, 15 Sep 2009 20:54:19 +0000 (22:54 +0200)
commit770931805d292908a57a3d2c5f9a4fcde888b5a2
treea1cf5a0e36c4a0ae7d75f3ac7d68510791c6547f
parenta6e19d69f63c14b7672c65ca4b014621c6fd0201
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