aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fork.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-08-27 21:38:50 +0200
committerCorinna Vinschen <corinna@vinschen.de>2020-08-28 09:44:18 +0200
commit0a31ad6f4c8bf18864b0be3546b402db0a6108f7 (patch)
tree02611382942394ed409cbbfde9438f5a7b5e9905 /winsup/cygwin/fork.cc
parent49a9ffdf4bcb3388cde5e4f441dd710701136ba7 (diff)
downloadnewlib-0a31ad6f4c8bf18864b0be3546b402db0a6108f7.zip
newlib-0a31ad6f4c8bf18864b0be3546b402db0a6108f7.tar.gz
newlib-0a31ad6f4c8bf18864b0be3546b402db0a6108f7.tar.bz2
Cygwin: fix up proc_subproc flags and matching pinfo methods
After patch 23a779bf3d7c2afc9eab88f6b8727c1db5544547 "Cygwin: pinfo: stop remember doing reattach", PROC_ADDCHILD actually just sets up a new child, mirroring PROC_DETACHED_CHILD. The actual attaching of the child is performed by action PROC_REATTACH_CHILD or pinfo::reattach respectively. To better reflect what's going on, rename PROC_REATTACH_CHILD to PROC_ATTACH_CHILD and rename pinfo::reattach to pinfo::attach. For better readability change PROC_ADDCHILD to PROC_ADD_CHILD. Fix comments accordingly. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index 38172ca..43a9273 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -509,11 +509,11 @@ frok::parent (volatile char * volatile stack_here)
/* Do not attach to the child before it has successfully initialized.
Otherwise we may wait forever, or deliver an orphan SIGCHILD. */
- if (!child.reattach ())
+ if (!child.attach ())
{
this_errno = EAGAIN;
#ifdef DEBUGGING0
- error ("child reattach failed");
+ error ("child attach failed");
#endif
goto cleanup;
}