Don't write to stdin of a test process that could have already exited.
authorNoah Misch <noah@leadboat.com>
Tue, 16 Apr 2019 01:13:44 +0000 (18:13 -0700)
committerNoah Misch <noah@leadboat.com>
Tue, 16 Apr 2019 01:13:44 +0000 (18:13 -0700)
commite12a4726127b90b8fc5e75690fe4527f1866412d
tree6afd2fac761c861c1eb165cd56ce8853dd5e0955
parentdde7fb7836c7428f79cb3cd88ca5febb802e767e
Don't write to stdin of a test process that could have already exited.

Instead, close that stdin.  Per buildfarm member conchuela.  Back-patch
to 9.6, where the test was introduced.

Discussion: https://postgr.es/m/26478.1555373328@sss.pgh.pa.us
src/test/recovery/t/017_shm.pl