bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A background ssh can take over the tty from bash?


From: L A Walsh
Subject: Re: A background ssh can take over the tty from bash?
Date: Mon, 12 Jun 2017 11:48:34 -0700
User-agent: Thunderbird

Clark Wang wrote:

I've checked the ssh process and it does not catch SIGTTIN and that's why
I'm confused.
----
   From what I understand, a background process will automatically
block when it tries to read from STDIN.  By definition, processes
become bg-processes by using '&'.  I haven't looked at the
code, but I'm guessing that the first 'ssh' that you launched
(*without* the '&') is the process swallowing your input as
it was declared to be a some sort of master-multiplexer for
subsequent slave processes, but that's just a guess.  Maybe
putting the master in background @ launch (using '&') will
cause it to auto-block(suspend) as you expect?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]