[PATCH] pg_test_fsync: Delete temporary file when aborted by a signal
Marti Raudsepp <marti@juffo.org>
From: Marti Raudsepp <marti@juffo.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-12-07T18:40:51Z
Lists: pgsql-hackers
Attachments
- 0001-pg_test_fsync-Delete-temporary-file-when-aborted-by-.patch (text/x-patch) patch 0001
Hi list, I found a 'pg_test_fsync.out' file in my $PGDATA, which was probably left around because I aborted pg_test_fsync with ^C back when setting up the server. Here's a patch to delete that file via a signal handler for SIGINT/SIGTERM/SIGHUP. Not tested on Windows, but should work according to MSDN documentation. Regards, Marti