[PATCH] ctdb-tests: Don't use nc -d or -w options

Martin Schwenke martin at meltin.net
Fri Mar 9 05:13:34 UTC 2018


nmap-ncat is used in some distributions to replace netcat.  It has a
different meaning for these options.

We can get the same effect as the current combination of -d and -w by
piping a sleep process to nc.  Subsequent use of $! works because it
gets the last process in pipeline.

Note that redirecting from /dev/null doesn't work with some versions
of nc.  They just exit when they get EOF.

Please review and maybe push...

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-tests-Don-t-use-nc-d-or-w-options.patch
Type: text/x-patch
Size: 4158 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180309/5c808b6e/0001-ctdb-tests-Don-t-use-nc-d-or-w-options.bin>


More information about the samba-technical mailing list