diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-07 00:52:44 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-07 00:52:44 +0800 |
commit | 15aeda78aa5c7edd4e4c30a4f728290126b2e0bd (patch) | |
tree | 5c420da0d3b3c083092a915a422975e2a71f04e7 /camel/camel-pgp-context.c | |
parent | 40c22b25f1e318b405bf2f995d2636de5c731959 (diff) | |
download | gsoc2013-evolution-15aeda78aa5c7edd4e4c30a4f728290126b2e0bd.tar.gz gsoc2013-evolution-15aeda78aa5c7edd4e4c30a4f728290126b2e0bd.tar.zst gsoc2013-evolution-15aeda78aa5c7edd4e4c30a4f728290126b2e0bd.zip |
Set the pipe fd's to nonblocking.
2001-07-06 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c (crypto_exec_with_passwd): Set the pipe fd's
to nonblocking.
svn path=/trunk/; revision=10847
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r-- | camel/camel-pgp-context.c | 4 |
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; |