mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 01:21:49 +02:00
PostgresNode: initialize $timed_out if passed
Corrects an oversight in 2c83f435a3
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
This commit is contained in:
parent
80b986cf52
commit
9bd61311bd
@ -1032,6 +1032,8 @@ sub psql
|
||||
IPC::Run::timeout($params{timeout}, exception => $timeout_exception)
|
||||
if (defined($params{timeout}));
|
||||
|
||||
${$params{timed_out}} = 0 if defined $params{timed_out};
|
||||
|
||||
# IPC::Run would otherwise append to existing contents:
|
||||
$$stdout = "" if ref($stdout);
|
||||
$$stderr = "" if ref($stderr);
|
||||
|
Loading…
Reference in New Issue
Block a user