Bug 58824
Summary: | write(2) can block despite fd being non-blocking | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | peter.benie |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | alan |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.chiark.greenend.org.uk/~peterb/linux/nonblock/ | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-09-30 15:39:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
peter.benie
2002-01-25 10:13:42 UTC
Patch looks fine except that the return value might need to be -EWOULDBLOCK; I'll go hunt the appropriate standards... SUSv2 only lists EAGAIN for write(); network operations (send(2) etc) may return either EAGAIN or EWOULDBLOCK. SUSv2 also states that EWOULDBLOCK may be the same value as EAGAIN, and this is the case under Linux for all architectures except PA-RISC, where you will find the following comment in errno.h: #define EWOULDBLOCK 246 /* Operation would block (Linux returns EAGAIN) */ The tty one is fixed in 2.4.18-ac and pushed on to Marcelo Thanks for the bug report. However, Red Hat no longer maintains this version of the product. Please upgrade to the latest version and open a new bug if the problem persists. The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, and if you believe this bug is interesting to them, please report the problem in the bug tracker at: http://bugzilla.fedora.us/ |