https://bugzilla.novell.com/show_bug.cgi?id=375580
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=375580#c1 --- Comment #1 from Miguel de Icaza <[EMAIL PROTECTED]> 2008-03-31 16:21:45 MST --- I agree that this routine looks buggy, but I have applied a slightly different change: * I agree with this: - n = count - offset; + n = count; * I added the check for interrupted writes: - t = write(fd, buffer + offset, count); + do { + t = write (fd, buffer + offset, n); + } while (t == -1 && errno == EINTR); + + if (t < 0) + return -1; This will retry writes as long as they are interrupted, but will abort if there is another kind of error. The updating of n will remain as-is -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
