|
25 | 25 | * |
26 | 26 | * |
27 | 27 | * IDENTIFICATION |
28 | | - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.81 2002/10/14 17:15:11 momjian Exp $ |
| 28 | + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.82 2002/10/14 17:33:08 momjian Exp $ |
29 | 29 | * |
30 | 30 | *------------------------------------------------------------------------- |
31 | 31 | */ |
@@ -790,6 +790,7 @@ pqWaitTimed(int forRead, int forWrite, PGconn *conn, const struct timeval *timeo |
790 | 790 | fd_setexcept_mask; |
791 | 791 |
|
792 | 792 | structtimevaltmp_timeout; |
| 793 | +structtimeval*ptmp_timeout=NULL; |
793 | 794 |
|
794 | 795 | if (conn->sock<0) |
795 | 796 | { |
@@ -826,9 +827,10 @@ pqWaitTimed(int forRead, int forWrite, PGconn *conn, const struct timeval *timeo |
826 | 827 | *use copy |
827 | 828 | */ |
828 | 829 | tmp_timeout=*timeout; |
| 830 | +ptmp_timeout=&tmp_timeout; |
829 | 831 | } |
830 | 832 | if (select(conn->sock+1,&input_mask,&output_mask, |
831 | | -&except_mask,&tmp_timeout)<0) |
| 833 | +&except_mask,ptmp_timeout)<0) |
832 | 834 | { |
833 | 835 | if (SOCK_ERRNO==EINTR) |
834 | 836 | gotoretry5; |
|