1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

2007-07-16 Marcus Brinkmann <marcus@g10code.de>

* gpg-connect-agent.c (main): Bail out if write fails.
This commit is contained in:
Marcus Brinkmann 2007-07-16 14:33:34 +00:00
parent bce4ea798a
commit 2d4e157d85
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-07-16 Marcus Brinkmann <marcus@g10code.de>
* gpg-connect-agent.c (main): Bail out if write fails.
2007-07-05 Marcus Brinkmann <marcus@g10code.de> 2007-07-05 Marcus Brinkmann <marcus@g10code.de>
* symcryptrun.c (confucius_get_pass): Define orig_codeset if * symcryptrun.c (confucius_get_pass): Define orig_codeset if

View File

@ -258,7 +258,6 @@ do_recvfd (assuan_context_t ctx, char *line)
} }
/* gpg-connect-agent's entry point. */ /* gpg-connect-agent's entry point. */
int int
main (int argc, char **argv) main (int argc, char **argv)
@ -464,7 +463,7 @@ main (int argc, char **argv)
if (rc) if (rc)
{ {
log_info (_("sending line failed: %s\n"), gpg_strerror (rc) ); log_info (_("sending line failed: %s\n"), gpg_strerror (rc) );
continue; break;
} }
if (*line == '#' || !*line) if (*line == '#' || !*line)
continue; /* Don't expect a response for a comment line. */ continue; /* Don't expect a response for a comment line. */
@ -472,6 +471,12 @@ main (int argc, char **argv)
rc = read_and_print_response (ctx); rc = read_and_print_response (ctx);
if (rc) if (rc)
log_info (_("receiving line failed: %s\n"), gpg_strerror (rc) ); log_info (_("receiving line failed: %s\n"), gpg_strerror (rc) );
/* FIXME: If the last command was BYE or the server died for
some other reason, we won't notice until we get the next
input command. Probing the connection with a non-blocking
read could help to notice termination or other problems
early. */
} }
if (opt.verbose) if (opt.verbose)