ctdb-tools: Revisit stray file descriptor avoidance in onnode
authorMartin Schwenke <martin@meltin.net>
Tue, 27 Feb 2018 04:12:26 +0000 (15:12 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 1 Mar 2018 18:39:15 +0000 (19:39 +0100)
commit254a18422c567a591d7e99ff6d1d0678d985c5fa
treedf5d2bba96a789f19dba652bab82c36761d6f90a
parent248c37413756c582f50b820fafb03d59fa2e0f99
ctdb-tools: Revisit stray file descriptor avoidance in onnode

Commit 635da189dccef6516d490c228407b9987986c578 fixed a problem where
a stray file descriptor leaked into a subshell.

Explicitly close the file descriptor at the outermost possible point
rather than relying on fakessh() to do it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/onnode