|
25 | 25 | *
|
26 | 26 | *
|
27 | 27 | * IDENTIFICATION
|
28 |
| - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.82 2002/10/1417:33:08 momjian Exp $ |
| 28 | + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.83 2002/10/1418:11:17 momjian Exp $ |
29 | 29 | *
|
30 | 30 | *-------------------------------------------------------------------------
|
31 | 31 | */
|
@@ -824,7 +824,12 @@ pqWaitTimed(int forRead, int forWrite, PGconn *conn, const struct timeval *timeo
|
824 | 824 | {
|
825 | 825 | /*
|
826 | 826 | * select() may modify timeout argument on some platforms so
|
827 |
| - *use copy |
| 827 | + *use copy. |
| 828 | + *XXX Do we really want to do that? If select() returns |
| 829 | + *the number of seconds remaining, we are resetting |
| 830 | + *the timeout to its original value. This will yeild |
| 831 | + *incorrect timings when select() is interrupted. |
| 832 | + *bjm 2002-10-14 |
828 | 833 | */
|
829 | 834 | tmp_timeout=*timeout;
|
830 | 835 | ptmp_timeout=&tmp_timeout;
|
|