* pinfo.h (pinfo::remember): Arrange for destructor call if proc_subproc

returns error.
* sigproc.cc (zombies): Store 1 + total zombies since proc_subproc uses
NZOMBIES element.
This commit is contained in:
Christopher Faylor
2002-08-19 14:59:27 +00:00
parent 34f7289475
commit 3bacc423cf
3 changed files with 17 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ Static HANDLE events[PSIZE + 1]; // All my children's handles++
#define hchildren (events + 1) // Where the children handles begin
Static char cpchildren[PSIZE * sizeof (pinfo)]; // All my children info
Static int nchildren; // Number of active children
Static char czombies[NZOMBIES * sizeof (pinfo)]; // All my deceased children info
Static char czombies[(NZOMBIES + 1) * sizeof (pinfo)]; // All my deceased children info
Static int nzombies; // Number of deceased children
#define pchildren ((pinfo *) cpchildren)