[PATCH] nc: fix client hang
Denys Vlasenko
vda.linux at googlemail.com
Mon Aug 3 01:01:57 UTC 2009
On Monday 03 August 2009 00:29, Tomoya Adachi wrote:
> When nc is running as a persistent server, the client's socket is not
> closed in the parent process. This causes the client process to hang.
> Here is a simple example:
>
> $ ./busybox nc -l -l -p 8000 -e /bin/echo Hello &
> [1] 5994
>
> $ nc localhost 8000
> Hello
> <---- it doesn't return to the shell prompt
>
> Signed-off-by: Tomoya Adachi <adachi at il.is.s.u-tokyo.ac.jp>
Applied with edits. Thanks!
--
vda
More information about the busybox
mailing list