Bug 1330661
Summary: | Add some error codes to clone manpage | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ben Woodard <woodard> | |
Component: | man-pages-overrides | Assignee: | Nikola Forró <nforro> | |
Status: | CLOSED ERRATA | QA Contact: | Iveta Wiedermann <isenfeld> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.3 | CC: | jkejda, ovasik, tgummels, woodard | |
Target Milestone: | rc | Keywords: | ManPageChange, Patch | |
Target Release: | 7.3 | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | man-pages-overrides-7.3.1-1.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1330663 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-04 07:31:54 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1274917, 1330663, 1349850, 1364088 |
Description
Ben Woodard
2016-04-26 16:46:56 UTC
Hello Ben, are you sure that clone syscall can return these error codes? Quoting include/linux/errno.h [1]: These should never be seen by user programs. To return one of ERESTART* codes, signal_pending() MUST be set. Note that ptrace can observe these at syscall exit tracing, but they will never be left for the debugged user process to see. So if you are seeing these error codes in strace output, it doesn't mean that they can actually be seen from userspace application. Regards, Nikola [1] https://github.com/torvalds/linux/blob/master/include/linux/errno.h OK, since from these ERESTART* error codes clone syscall can return only ERESTARTNOINTR, I think something like this could be added to the man page: ERESTARTNOINTR (since Linux 2.6.17) System call was interrupted by a signal and will be restarted. (This can be seen only during a trace.) The same should be probably added to the fork(2) man page. What do you think, Ben? I just conferred with the customer and they have not seen any of the other error codes in practice and so we think that your suggested addition would be sufficient. Upstream patch: http://www.spinics.net/lists/linux-man/msg10249.html Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2485.html |