Make sure the cancel_fd isn't -1.

2001-10-18  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (crypto_exec_with_passwd): Make sure the
	cancel_fd isn't -1.

svn path=/trunk/; revision=13781
This commit is contained in:
Jeffrey Stedfast
2001-10-19 00:30:36 +00:00
committed by Jeffrey Stedfast
parent 18dab3abfd
commit ae6f93814a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-10-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c (crypto_exec_with_passwd): Make sure the
cancel_fd isn't -1.
2001-10-18 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-message-cache.c (insert_finish): Flush

View File

@ -411,7 +411,7 @@ crypto_exec_with_passwd (const char *path, char *argv[], const char *input, int
select_result = select (max + 1, &fdset, &write_fdset,
NULL, &timeout);
if (FD_ISSET (cancel_fd, &fdset)) {
if (cancel_fd != -1 && FD_ISSET (cancel_fd, &fdset)) {
/* user-cancelled */
break;
}