Lock game an position file during writing
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 24 Apr 2011 15:15:23 +0000 (17:15 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 4 May 2011 16:42:05 +0000 (18:42 +0200)
commit5bd571321c23608ce3f07bf523a8bbf2ddda2210
treeba956a9e6761fc37eca2fd1d9f3431113b6c5cc7
parent2b59fb6b9575ad038bae89a48063084c8b3243a9
Lock game an position file during writing

The use of flock() on the file desctiptor of the opened stream should
guarantee multiple XBoard instances, saving on the same file, will not
interleave their PGN games or FEN positions.
backend.c
backend.h
winboard/winboard.c
xboard.c