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:

committed by
Jeffrey Stedfast

parent
18dab3abfd
commit
ae6f93814a
@ -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>
|
2001-10-18 Jeffrey Stedfast <fejj@ximian.com>
|
||||||
|
|
||||||
* providers/imap/camel-imap-message-cache.c (insert_finish): Flush
|
* providers/imap/camel-imap-message-cache.c (insert_finish): Flush
|
||||||
|
@ -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,
|
select_result = select (max + 1, &fdset, &write_fdset,
|
||||||
NULL, &timeout);
|
NULL, &timeout);
|
||||||
|
|
||||||
if (FD_ISSET (cancel_fd, &fdset)) {
|
if (cancel_fd != -1 && FD_ISSET (cancel_fd, &fdset)) {
|
||||||
/* user-cancelled */
|
/* user-cancelled */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user