]> 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:38 +0000 (19:31 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Jul 2012 23:31:38 +0000 (19:31 -0400)
commit53bc376d089d29cf34b98d1c72444ada4a7d9450
treebd206f59e5703dbc9928f283118a87deb4c7b235
parent588586b3f3daad2f4ddace9fc79caeade446420e
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