mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
d53535a9ea
Closes PR #2151. Submitted by: Kenneth Monville <desmo@bandwidth.org>
20 lines
516 B
Plaintext
20 lines
516 B
Plaintext
*** file.c.orig Wed Dec 4 08:19:13 1996
|
|
--- file.c Wed Dec 4 08:25:00 1996
|
|
***************
|
|
*** 229,235 ****
|
|
lock.l_type = F_WRLCK;
|
|
lock.l_whence = SEEK_SET;
|
|
lock.l_start = lock.l_len = (long) 0;
|
|
! fcntl (fileno (file), F_SETFL, O_SYNC);
|
|
fcntl (fileno (file), F_SETLKW, &lock);
|
|
#endif
|
|
|
|
--- 229,235 ----
|
|
lock.l_type = F_WRLCK;
|
|
lock.l_whence = SEEK_SET;
|
|
lock.l_start = lock.l_len = (long) 0;
|
|
! fcntl (fileno (file), F_SETFL, O_FSYNC);
|
|
fcntl (fileno (file), F_SETLKW, &lock);
|
|
#endif
|
|
|