Fix bug where pg_receivexlog goes into busy loop if -s option is set to 0.

Fujii Masao <fujii@postgresql.org>

Commit: 78493b716802cbe632d36c85f0d7c3bdb708e045
Author: Fujii Masao <fujii@postgresql.org>
Date: 2014-07-24T06:25:26Z
Releases: 9.5.0
Fix bug where pg_receivexlog goes into busy loop if -s option is set to 0.

The problem is that pg_receivexlog calls select(2) with timeout=0 and
goes into busy loop when --status-interval option is set to 0. This bug
was introduced by the commit,
74cbe966fe2d76de1d607d933c98c144dab58769.

Per report from Sawada Masahiko

Files

PathChange+/−
src/bin/pg_basebackup/receivelog.c modified +1 −1