[PATCH] pg_test_fsync: Delete temporary file when aborted by a signal

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] pg_test_fsync: Delete temporary file when aborted by a signal
Date: 2011-12-07 18:40:51
Message-ID: CABRT9RAa5XX4hxkqg9zspLeA+H2DvVT75VoqzbpDgeamdAS_zA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
0001-pg_test_fsync-Delete-temporary-file-when-aborted-by-.patch text/x-patch 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-12-07 18:45:19 Re: [v9.2] Fix Leaky View Problem
Previous Message Robert Haas 2011-12-07 17:52:23 Re: [v9.2] Fix Leaky View Problem