mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Fix BSD/OS thread file locking bug in new fseeko code.
Backpatch to 7.3.X.
This commit is contained in:
parent
573fe25203
commit
3c06dd7f3d
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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.7.2.1 2003/01/02 06:01:02 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -55,7 +55,7 @@ fseeko(FILE *stream, off_t offset, int whence)
|
|||||||
if (fsetpos(stream, &floc) != 0)
|
if (fsetpos(stream, &floc) != 0)
|
||||||
goto failure;
|
goto failure;
|
||||||
#ifdef bsdi
|
#ifdef bsdi
|
||||||
flockfile(stream);
|
funlockfile(stream);
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user