Skip to content

Commit 4dc9039

Browse files
committed
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
1 parent ab35962 commit 4dc9039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/recovery/t/017_shm.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ sub init_start
151151
my $single_stderr;
152152
ok( !run_log(
153153
[ 'postgres', '--single', '-D', $gnat->data_dir, 'template1' ],
154-
'<', \('SELECT 1 + 1'), '2>', \$single_stderr),
154+
'<', \undef, '2>', \$single_stderr),
155155
'live query blocks --single');
156156
print STDERR $single_stderr;
157157
like($single_stderr, $pre_existing_msg,

0 commit comments

Comments
 (0)