[kmail] [Bug 214140] kmail creates zombie processes
Oleg Sidorkin
OSidorkin at gmail.com
Mon Apr 7 22:58:05 BST 2014
https://bugs.kde.org/show_bug.cgi?id=214140
--- Comment #4 from Oleg Sidorkin <OSidorkin at gmail.com> ---
It seems to be gpgme bug actually - not KDE one.
with the following patch applied to gpgme it stops producing zombies. Not sure
if it is actually correct.
--- src/posix-io.c.orig 2012-09-25 17:46:40.000000000 +0400
+++ src/posix-io.c 2014-04-08 01:51:56.000000000 +0400
@@ -340,10 +340,15 @@
_gpgme_io_waitpid (int pid, int hang, int *r_status, int *r_signal)
{
int status;
-
+ int ret;
*r_status = 0;
*r_signal = 0;
- if (_gpgme_ath_waitpid (pid, &status, hang? 0 : WNOHANG) == pid)
+ do
+ {
+ ret = _gpgme_ath_waitpid (pid, &status, hang? 0 : WNOHANG);
+ }
+ while (ret == -1 && errno == EINTR);
+ if (ret == pid)
{
if (WIFSIGNALED (status))
{
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list