Commit cfcdd31c authored by Bruce Momjian's avatar Bruce Momjian

Change small 'if/else' test to use Max().

parent 513bbf40
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* Copyright (c) 2001-2003, PostgreSQL Global Development Group * Copyright (c) 2001-2003, PostgreSQL Global Development Group
* *
* $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 $
* ---------- * ----------
*/ */
#include "postgres.h" #include "postgres.h"
...@@ -1681,10 +1681,7 @@ pgstat_mainChild(PGSTAT_FORK_ARGS) ...@@ -1681,10 +1681,7 @@ pgstat_mainChild(PGSTAT_FORK_ARGS)
FD_SET(readPipe, &rfds); FD_SET(readPipe, &rfds);
FD_SET(pmPipe, &rfds); FD_SET(pmPipe, &rfds);
if (readPipe > pmPipe) maxfd = Max(readPipe, pmPipe);
maxfd = readPipe;
else
maxfd = pmPipe;
/* /*
* Now wait for something to do. * Now wait for something to do.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment