GNOME Bugzilla – Bug 741786
Gets stuck while closing fds before execing gpg
Last modified: 2015-01-05 15:54:37 UTC
While closing fds using fcntl, if the call fails (eg., due to "bad file descriptor" when the fd being closed was never open in the first place) the attempt to write the debug message to stdout causes the system call to never return. Possibly because stdin has already been redirected to the parent process. Backtrace of stillborn child process: (gdb) bt
+ Trace 234436
$1 = 589 (gdb) print maxfd $2 = 1024 (gdb)
Created attachment 293098 [details] [review] Don't get stuck while closing fds before execing GPG Possible fix - not printing the error message is probably harmless in this case and fixes the problem for me.
Review of attachment 293098 [details] [review]: Thanks for a bug report and patch. I took your version and slightly modified it. My change may just silence Coverity Scan warnings, plus I added a comment to not print error messages there.
Created commit 1254674 in eds master (3.13.10+) [1] Created commit 46b678b in eds evolution-data-server-3-12 (3.12.10+) [1] https://git.gnome.org/browse/evolution-data-server/commit/?id=1254674