[patch] #40508 - keep ssh subprocess in same process group
Martin Pool
mbp at sourcefrog.net
Thu Apr 27 00:57:38 BST 2006
On 27/04/2006, at 4:13 AM, Jan Hudec wrote:
> On Wed, Apr 26, 2006 at 21:57:13 +1000, Martin Pool wrote:
>> On 26/04/2006, at 7:21 PM, Jan Hudec wrote:
>>> From these, at least HUP, INT, PIPE, TERM, USR1, USR2, PWR (where
>>> defined) and maybe QUIT are likely to occur occasionally and
>>> should be
>>> trapped.
>>
>> SIGPIPE is already turned into IOException with errno=EPIPE by
>> Python. I suppose unwinding on receipt of the others is the most
>> reasonable thing.
>
> I never needed to know, so I didn't. But it's exactly what happens
> if you
> ignore SIGPIPE -- the syscall that would generate it simply sets
> errno to
> EPIPE.
That's right, Python ignores sigpipe during initialization.
--
Martin
More information about the bazaar
mailing list