Skip to content

Commit cfcdd31

Browse files
committed
Change small 'if/else' test to use Max().
1 parent 513bbf4 commit cfcdd31

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
1515
*
16-
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.62 2004/03/22 23:55:29 tgl Exp $
16+
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.63 2004/03/27 17:32:42 momjian Exp $
1717
* ----------
1818
*/
1919
#include "postgres.h"
@@ -1681,10 +1681,7 @@ pgstat_mainChild(PGSTAT_FORK_ARGS)
16811681
FD_SET(readPipe, &rfds);
16821682
FD_SET(pmPipe, &rfds);
16831683

1684-
if (readPipe > pmPipe)
1685-
maxfd = readPipe;
1686-
else
1687-
maxfd = pmPipe;
1684+
maxfd = Max(readPipe, pmPipe);
16881685

16891686
/*
16901687
* Now wait for something to do.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy