Bug 59272
Summary: | pthread_create() causes "Interrupted system call" | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Wagner T. Correa <wtcorrea> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | fweimer, wtcorrea |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-02-04 14:36:19 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
Wagner T. Correa
2002-02-04 14:36:15 UTC
Wrong expectation, see http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_create.html pthread_create returns error code in its return value, not in errno. Generally, errno value is undefined unless immediately after function call which is documented to modify errno and which returned -1, or in just a few specific cases documented in the standards (e.g. strto*l). errno = 0; read(...); if (errno != 0) { } is a wrong thing to do as well, errno is defined only if read returns -1. |