Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513bbf4 commit cfcdd31Copy full SHA for cfcdd31
src/backend/postmaster/pgstat.c
@@ -13,7 +13,7 @@
13
*
14
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
15
16
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.62 2004/03/22 23:55:29 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.63 2004/03/27 17:32:42 momjian Exp $
17
* ----------
18
*/
19
#include "postgres.h"
@@ -1681,10 +1681,7 @@ pgstat_mainChild(PGSTAT_FORK_ARGS)
1681
FD_SET(readPipe, &rfds);
1682
FD_SET(pmPipe, &rfds);
1683
1684
- if (readPipe > pmPipe)
1685
- maxfd = readPipe;
1686
- else
1687
- maxfd = pmPipe;
+ maxfd = Max(readPipe, pmPipe);
1688
1689
/*
1690
* Now wait for something to do.
0 commit comments