* patch for RCS to work around OSF/1 bug
@ 1993-04-28 16:10 Paul Eggert
0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 1993-04-28 16:10 UTC (permalink / raw)
A user reports that an OSF/1 bug breaks the Revision Control System
(RCS). Here's the bug: if you have a stdio file descriptor open into a
file, fork and exec a process that opens and reads the same file, and
then reposition the file with fseek, fseek sometimes get confused and
repositions to the wrong location. The bug is still present in OSF
BL12. I don't have access to an OSF/1 host (I don't even know what
OSF BL12 is) so I'm just passing this along.
The user reports that the following hacky patch to RCS works around the bug
by turning off buffering in the affected files.
*** ci.c
--- <latest revision>
***************
*** 537,545 ****
eerror(workfilename);
continue;
}
- #ifdef OSF1
- setbuf(workptr,NULL);
- #endif
if (finptr && !checkaccesslist()) continue; /* give up */
krev = rev;
--- 537,542 ----
*** rcslex.c
--- <latest revision>
***************
*** 239,247 ****
nerror = 0;
if (finptr) {
- #ifdef OSF1
- setbuf(finptr,NULL);
- #endif
foutptr = 0;
hshenter = true;
ignored_phrases = false;
--- 239,244 ----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-04-28 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-04-28 16:10 patch for RCS to work around OSF/1 bug Paul Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox