[PATCH] ctdb-tests: Don't use nc -d or -w options
Andreas Schneider
asn at samba.org
Fri Mar 9 07:31:17 UTC 2018
On Friday, 9 March 2018 07:10:06 CET Martin Schwenke via samba-technical
wrote:
> On Fri, 9 Mar 2018 16:48:40 +1100, Amitay Isaacs <amitay at gmail.com>
>
> wrote:
> > On Fri, Mar 9, 2018 at 4:13 PM, Martin Schwenke via samba-technical
> >
> > <samba-technical at lists.samba.org> wrote:
> > > 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...
> >
> > Reviewed-by: Amitay Isaacs <amitay at gmail.com>
>
> All pushed.
Thanks for looking into this and fixing it!
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
www.samba.org
More information about the samba-technical
mailing list