]> granicus.if.org Git - postgresql/commit
Report exit code from external recovery commands properly
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 13 Nov 2013 11:38:18 +0000 (06:38 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 3 Dec 2013 03:31:05 +0000 (22:31 -0500)
commitfef88b3fdaa3537c64e3d7df9261bc75ece80d3f
tree30e1b1c49bb3c1435b6818e960aafa30dc0f9cc9
parent7ab321404c4f721a22e86f36f68fe5e94f65e54d
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>
src/backend/access/transam/xlogarchive.c