+2001-02-13 Werner Koch <wk@gnupg.org>
+
+ * posix-io.c (_gpgme_io_read): Add some debug output.
+ (_gpgme_io_write): Ditto.
+ (_gpgme_io_select): Increased the timeout.
+
2001-02-12 Werner Koch <wk@gnupg.org>
Enhanced the signature verification, so that it can how handle
{
int nread;
+ DEBUG2 ("fd %d: about to read %d bytes\n", fd, (int)count );
do {
nread = read (fd, buffer, count);
} while (nread == -1 && errno == EINTR );
+ DEBUG2 ("fd %d: got %d bytes\n", fd, nread );
return nread;
}
{
int nwritten;
+ DEBUG2 ("fd %d: about to write %d bytes\n", fd, (int)count );
do {
nwritten = write (fd, buffer, count);
} while (nwritten == -1 && errno == EINTR );
+ DEBUG2 ("fd %d: wrote %d bytes\n", fd, (int)nwritten );
return nwritten;
}
static fd_set readfds;
static fd_set writefds;
int any, i, max_fd, n, count;
- struct timeval timeout = { 0, 50 }; /* Use a 50ms timeout */
+ struct timeval timeout = { 0, 200 }; /* Use a 200ms timeout */
void *dbg_help;
FD_ZERO ( &readfds );
if ( *p == '\n' ) {
/* (we require that the last line is terminated by a LF) */
*p = 0;
- /*fprintf (stderr, "read_status: `%s'\n", buffer);*/
+ /* fprintf (stderr, "read_status: `%s'\n", buffer); */
if (!strncmp (buffer, "[GNUPG:] ", 9 )
&& buffer[9] >= 'A' && buffer[9] <= 'Z' ) {
struct status_table_s t, *r;