Bug 50774
Summary: | variables trashed in forked process | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Dan Mergens <dan> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | ||
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: | 2001-08-03 00:09:45 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
Dan Mergens
2001-08-03 00:09:41 UTC
This is the expected behaviour. fork means the two processes don't share address space, so writing into *status in the child really should not do anything in the parent (it is possible that this was 0 on Irix before). If you want the two processes to share memory, so that this would work, please check out POSIX threads library or clone system call instead. |