Page MenuHome GnuPG

gnupg-agent: modifies SigBlk mask of all processes spawned in the X session breaking unrelated software
Closed, ResolvedPublic

Description

Debian bugreport:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499569

I can confirm the issue and also that the patch from
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499569#17 fixes it for me.

Details

Event Timeline

ptr_uzl set External Link to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499569.
ptr_uzl added projects: gnupg, Bug Report, Debian.
ptr_uzl added a subscriber: ptr_uzl.
werner added a subscriber: werner.

From the the glibc manual (24.7.3 Process Signal Mask):

the previous signal mask in order to restore it later.  (Since the
signal mask is inherited over `fork' and `exec' calls, you can't
predict what its contents are when your program starts running.)

Thus I think it is a bug in Mono. Anyway, for convenience I will fix it.

Okay, fixed in SVN 4958.

I also fixed a problem with leaked file descriptors when using

gpg-agent --daemon some_command

Now all file descriptors except the standard ones and those already open at
startup are properly closed before the exec.

werner added a project: Restricted Project.
werner removed a project: Restricted Project.