Cygwin: fix up proc_subproc flags and matching pinfo methods
After patch 23a779bf3d
"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>
This commit is contained in:
@@ -30,8 +30,8 @@ enum
|
||||
|
||||
enum procstuff
|
||||
{
|
||||
PROC_ADDCHILD = 1, // add a new subprocess to list
|
||||
PROC_REATTACH_CHILD = 2, // reattach after exec
|
||||
PROC_ADD_CHILD = 1, // set up a new child
|
||||
PROC_ATTACH_CHILD = 2, // attach child or reattach after exec
|
||||
PROC_EXEC_CLEANUP = 3, // cleanup waiting children after exec
|
||||
PROC_DETACHED_CHILD = 4, // set up a detached child
|
||||
PROC_CLEARWAIT = 5, // clear all waits - signal arrived
|
||||
|
Reference in New Issue
Block a user