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.
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. www.opengroup. org/onlinepubs/ 000095399/ functions/ exec.html
http://
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
-- www.robertcolli ns.net/ keys.txt>.
GPG key available at: <http://