From: eggert@twinsun.com (Paul Eggert)
Subject: patch for RCS to work around OSF/1 bug
Date: Wed, 28 Apr 1993 16:10:53 GMT [thread overview]
Message-ID: <blMLKn1X@twinsun.com> (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 ----
reply other threads:[~1993-04-28 16:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox