*
* 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"
FD_SET(readPipe, &rfds);
FD_SET(pmPipe, &rfds);
- if (readPipe > pmPipe)
- maxfd = readPipe;
- else
- maxfd = pmPipe;
+ maxfd = Max(readPipe, pmPipe);
/*
* Now wait for something to do.