#47 netcat returns EXIT_FAILURE on success in NETCAT_LISTEN mode

open
nobody
None
5
2009-03-17
2009-03-17
Anonymous
No

When run in listen mode, netcat returns EXIT_FAILURE even on success. Thus, one cannot distinguish between a successfully served request and a cancellation via CTRL-C.

glob_ret should be set to EXIT_SUCCESS after a successful server request. See attached patch.

Discussion