Article View: comp.bugs.4bsd
Article #100Re: Bug in file read/write with forked file-descriptors
From: Chris Torek
Date: Sat, 23 Sep 1989 19:52
Date: Sat, 23 Sep 1989 19:52
27 lines
1252 bytes
1252 bytes
In article <19757@mimsy.UUCP> I wrote:
>This bug was fixed quite some time ago (perhaps in 4.3-tahoe, perhaps a
>bit afterward). Here is the fix. Your lines numbers may not match.
Oops, you have to change sys_generic.c as well:
*** /tmp/,RCSt1006180 Sat Sep 23 15:49:38 1989
--- /tmp/,RCSt2006180 Sat Sep 23 15:49:41 1989
***************
*** 136,140 ****
}
count = uio->uio_resid;
- uio->uio_offset = fp->f_offset;
if (setjmp(&u.u_qsave)) {
if (uio->uio_resid == count) {
--- 137,140 ----
***************
*** 147,151 ****
u.u_error = (*fp->f_ops->fo_rw)(fp, rw, uio);
u.u_r.r_val1 = count - uio->uio_resid;
- fp->f_offset += u.u_r.r_val1;
}
--- 147,150 ----
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris
Technical Details
Message-ID:
<19763@mimsy.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!aplcen!haven!mimsy!chrisReferences:
<1989Sep22.160808.1407@light.uucp> <19757@mimsy.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!aplcen!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.bugs.4bsd Subject: Re: Bug in file read/write with forked file-descriptors Message-ID: <19763@mimsy.UUCP> Date: 23 Sep 89 19:52:30 GMT References: <1989Sep22.160808.1407@light.uucp> <19757@mimsy.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 27