mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
In pg_upgrade, improve popen() failure detection by checking for fgets()
failures.
This commit is contained in:
@ -109,8 +109,8 @@ get_control_data(ClusterInfo *cluster, bool live_check)
|
||||
fflush(stderr);
|
||||
|
||||
if ((output = popen(cmd, "r")) == NULL)
|
||||
pg_log(PG_FATAL, "Could not get control data: %s\n",
|
||||
getErrorText(errno));
|
||||
pg_log(PG_FATAL, "Could not get control data using %s: %s\n",
|
||||
cmd, getErrorText(errno));
|
||||
|
||||
/* Only pre-8.4 has these so if they are not set below we will check later */
|
||||
cluster->controldata.lc_collate = NULL;
|
||||
|
Reference in New Issue
Block a user