Commented code related to flock() in be-secure-openssl.c

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Commented code related to flock() in be-secure-openssl.c
Date: 2016-01-20 04:30:50
Message-ID: CAB7nPqRwSUt8JXNONo3T7_ZQq+8BOsWgKrGX9JEH7XvWFVLRCA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

I just bumped into the following code in be-secure-openssl.c:
/* flock(fileno(fp), LOCK_SH); */
dh = PEM_read_DHparams(fp, NULL, NULL, NULL);
/* flock(fileno(fp), LOCK_UN); */
Those have been added by 55d0532, dated as of 2002. Perhaps there is
some point to remove those lines?
Regards,
--
Michael

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2016-01-20 04:34:11 Re: dynloader.h missing in prebuilt package for Windows?
Previous Message Michael Paquier 2016-01-20 04:25:15 Re: Proposal: "Causal reads" mode for load balancing reads without stale data