On 6/29/16 1:39 PM, Grisha Levit wrote:
> The observed condition is input getting split between the shell and the
> background process. I couldn’t figure out what the general case is to
> trigger this, but I can observe it when an ssh process with an open unix
> socket is placed in the background.

I didn't look at this in any detail yet, but if you don't want the
background ssh process to read from its stdin (which is the same as the
shell's stdin), you need to use -n:

     -n      Redirects stdin from /dev/null (actually, prevents reading from
             stdin).  This must be used when ssh is run in the background.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to