with-authinfo-kludge: Change how ssh(1) signals that it's started.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 24 Apr 2016 22:30:30 +0000 (23:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 26 Apr 2016 19:32:25 +0000 (20:32 +0100)
commitb17683b096424c901fa5d6ddaa3b8ff2bdf95d2f
tree42ccfdf176968a20b5f4d3a06a779f29a47240fd
parenta3775340c77f71691104cbdcc3b993b60d980e5d
with-authinfo-kludge: Change how ssh(1) signals that it's started.

  * In `server_listen', arrange for the remote shell echo something to
    stdout.  Also, use `read' rather than cat(1), which saves a process
    on the remote system.  And, finally, include a comment so that the
    ps(1) output is approximately useful.

  * In `wait_for_ssh', go into a loop waiting for the echoed stuff from
    the remote servers to arrive (or for them to report early EOF).

Thanks to Ian Jackson for suggesting this approach: it's much better
than the previous one.
with-authinfo-kludge