2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Free child task information on a dead child.
7 #include "exec_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
15 AROS_LH1(void, ChildFree
,
18 AROS_LHA(APTR
, tid
, D0
),
21 struct ExecBase
*, SysBase
, 123, Exec
)
24 Clean up after a child process.
27 tid -- Id of the child to clean up. This is not the same as
31 The child will be freed.
34 This function will work correctly only for child tasks that are
35 processes created with NP_NotifyOnDeath set to TRUE.
37 Calling ChildFree() on a running child is likely to crash your
48 *****************************************************************************/
54 et
= FindChild((ULONG
)tid
);
57 Remove((struct Node
*)et
);
60 FreeVec(et
->et_Result2
);
63 FreeVec(IntETask(et
)->iet_Me
);