Content-Length: 259543 | pFad | http://github.com/postgrespro/postgres/commit/9bd61311bd48ea53b18bfecb9adddfd844acbffa

B7 PostgresNode: initialize $timed_out if passed · postgrespro/postgres@9bd6131 · GitHub
Skip to content

Commit 9bd6131

Browse files
committed
PostgresNode: initialize $timed_out if passed
Corrects an oversight in 2c83f43 where the $timed_out reference var isn't initialized; using it would require the caller to initialize it beforehand, which is cumbersome. Author: Craig Ringer
1 parent 80b986c commit 9bd6131

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,8 @@ sub psql
10321032
IPC::Run::timeout($params{timeout}, exception => $timeout_exception)
10331033
if (defined($params{timeout}));
10341034

1035+
${$params{timed_out}} = 0 if defined $params{timed_out};
1036+
10351037
# IPC::Run would otherwise append to existing contents:
10361038
$$stdout = "" if ref($stdout);
10371039
$$stderr = "" if ref($stderr);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9bd61311bd48ea53b18bfecb9adddfd844acbffa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy