From: Bruce Momjian Date: Thu, 2 Jan 2003 06:00:33 +0000 (+0000) Subject: Fix BSD/OS thread file locking bug in new fseeko code. X-Git-Tag: REL7_4_BETA1~1301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f86f146d9039c2ca0e16f333ec8a0d62491d984;p=postgresql Fix BSD/OS thread file locking bug in new fseeko code. Backpatch to 7.3.X. --- diff --git a/src/port/fseeko.c b/src/port/fseeko.c index 14984ad7b7..d86123e858 100644 --- a/src/port/fseeko.c +++ b/src/port/fseeko.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/port/fseeko.c,v 1.7 2002/10/28 00:00:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/port/fseeko.c,v 1.8 2003/01/02 06:00:33 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -55,7 +55,7 @@ fseeko(FILE *stream, off_t offset, int whence) if (fsetpos(stream, &floc) != 0) goto failure; #ifdef bsdi - flockfile(stream); + funlockfile(stream); #endif return 0; break;