shell tricks and trapping signals

Paul Lussier p.lussier at comcast.net
Fri Nov 2 11:53:35 EDT 2007


"Ben Scott" <dragonhawk at gmail.com> writes:

>   Can't you trap on the HUP (hang-up) signal for that?  Or is the
> process not running with a tty attached?

No, and exactly.  Essentially, our test suite opens a pipe to ssh and
treats ssh as an IPC interface.  It lobs commands across the ssh
tunnel with no attached tty.

The ssh tunnel can collapse, and any spawned process is essentially
orphanned to be reparented by init.  We want the spawned process to
trap on that re-parenting.

-- 
Seeya,
Paul


More information about the gnhlug-discuss mailing list