Re: [COMMITTERS] pgsql: Fix race condition in pg_ctl reading postmaster.pid.

2012-10-15 Thread Heikki Linnakangas
On 15.10.2012 17:05, Tom Lane wrote: Heikki Linnakangas writes: Fix race condition in pg_ctl reading postmaster.pid. If postmaster changed postmaster.pid while pg_ctl was reading it, pg_ctl could overrun the buffer it allocated for the file. Fix by reading the whole file to memory with one read

Re: [COMMITTERS] pgsql: Fix race condition in pg_ctl reading postmaster.pid.

2012-10-15 Thread Tom Lane
Heikki Linnakangas writes: > Fix race condition in pg_ctl reading postmaster.pid. > If postmaster changed postmaster.pid while pg_ctl was reading it, pg_ctl > could overrun the buffer it allocated for the file. Fix by reading the > whole file to memory with one read() call. Maybe I'm just not awa