]> granicus.if.org Git - postgresql/commit
Improve reporting of error situations in find_other_exec().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Jul 2012 23:31:19 +0000 (19:31 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Jul 2012 23:31:19 +0000 (19:31 -0400)
commit62d69045dd1c41bbcd8a7f78c7a4170e8381ca76
tree3639960aeffc7699942416f3b4412e3c619a7f44
parent9ebe82bd48e63081382641027dd0f16b00bca25f
Improve reporting of error situations in find_other_exec().

This function suppressed any stderr output from the called program, which
is unnecessary in the normal case and unhelpful in error cases.  It also
gave a rather opaque message along the lines of "fgets failure: Success"
in case the called program failed to return anything on stdout.  Since
we've seen multiple reports of people not understanding what's wrong when
pg_ctl reports this, improve the message.

Back-patch to all active branches.
src/port/exec.c