* pinfo.h (pinfo::reattach): Only set destroy to false when proc_subproc
succeeds. Return true for success. * sigproc.cc (child_info_spawn::reattach_children): Try harder to clean up on error by detecting reattach failures too.
This commit is contained in:
@@ -175,10 +175,11 @@ public:
|
||||
#ifndef _SIGPROC_H
|
||||
int remember () {system_printf ("remember is not here"); return 0;}
|
||||
#else
|
||||
void reattach ()
|
||||
int reattach ()
|
||||
{
|
||||
proc_subproc (PROC_REATTACH_CHILD, (DWORD) this);
|
||||
destroy = false;
|
||||
int res = proc_subproc (PROC_REATTACH_CHILD, (DWORD) this);
|
||||
destroy = res ? false : true;
|
||||
return res;
|
||||
}
|
||||
int remember (bool detach)
|
||||
{
|
||||
|
Reference in New Issue
Block a user