Comment 6 for bug 40508

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 40508] Re: ssh password problems with new bzr

On Mon, 2006-04-24 at 02:46 +0000, Martin Pool wrote:
> ssh -f seems to cause ssh to close stdin and stdout, so wouldn't be suitable.
>
> -o BatchMode would disable password prompts.
>
> Perhaps a better solution for bug 5987 is to ignore SIGINT in the child before starting ssh? I *think* ignored signals are retained across exec(), but I haven't checked yet.

posix_spawn lets you set a sig mask as you create the process.
http://www.opengroup.org/onlinepubs/000095399/functions/exec.html
confirms that we *should* be able to ignore the signal in the child.

So changing the after_fork call from setpgrp to setsigmask should work.

Rob

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.