Report exit code from external recovery commands properly

Peter Eisentraut <peter_e@gmx.net>

Commit: fef88b3fdaa3537c64e3d7df9261bc75ece80d3f
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2013-12-03T03:31:05Z
Releases: 9.4.0
Report exit code from external recovery commands properly

When an external recovery command such as restore_command or
archive_cleanup_command fails, report the exit code properly,
distinguishing signals and normal exists, using the existing
wait_result_to_str() facility, instead of just reporting the return
value from system().

Reviewed-by: Peter Geoghegan <pg@heroku.com>

Files

PathChange+/−
src/backend/access/transam/xlogarchive.c modified +6 −5