aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r--camel/camel-pgp-context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index 881cc0c16a..aae330bc8e 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -332,6 +332,10 @@ crypto_exec_with_passwd (const char *path, char *argv[], const char *input, int
close (diag_fds[1]);
close (passwd_fds[0]);
+ fcntl (ip_fds[1], F_SETFL, O_NONBLOCK);
+ fcntl (op_fds[0], F_SETFL, O_NONBLOCK);
+ fcntl (diag_fds[0], F_SETFL, O_NONBLOCK);
+
timeout.tv_sec = 10; /* timeout in seconds */
timeout.tv_usec = 0;