Closed Bug 31437 Opened 24 years ago Closed 24 years ago

Process ERANGE error on Solaris

Categories

(NSPR :: NSPR, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: srinivas, Assigned: srinivas)

Details

The write system call on Solaris has been reported to return the ERANGE error on 
occasion. NSPR should handle the error by writing smaller chunks of data.
Fix checked in.

Files modified:

/cvsroot/mozilla/nsprpub/pr/src/pthreads/ptio.c,v  <--  ptio.c
new revision: 3.44; previous revision: 3.43
/cvsroot/mozilla/nsprpub/pr/src/md/unix/unix.c,v  <--  unix.c
new revision: 3.32; previous revision: 3.31
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
I made the following changes after reviewing Srinivas's fix.

The ERANGE error handling code that was added to pt_Send also
needs to be added to pt_send_cont.
/cvsroot/mozilla/nsprpub/pr/src/pthreads/ptio.c, revision 3.49

The goto statement inside the while loop can be replaced by a
continue statement.
/cvsroot/mozilla/nsprpub/pr/src/md/unix/unix.c, revision 3.34
Target Milestone: --- → 4.1
You need to log in before you can comment on or make changes to this bug.