Support rastport clipping rectangle for layerless rastports
[tangerine.git] / rom / exec / childfree.c
blob66093bcce0fa4ada19365c7816f7328257e92af2
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Free child task information on a dead child.
6 */
7 #include "exec_intern.h"
8 #include "exec_util.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
15 AROS_LH1(void, ChildFree,
17 /* SYNOPSIS */
18 AROS_LHA(APTR, tid, D0),
20 /* LOCATION */
21 struct ExecBase *, SysBase, 123, Exec)
23 /* FUNCTION
24 Clean up after a child process.
26 INPUTS
27 tid -- Id of the child to clean up. This is not the same as
28 the Task pointer.
30 RESULT
31 The child will be freed.
33 NOTES
34 Calling ChildFree() on a running child is likely to crash your
35 system badly.
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
48 AROS_LIBBASE_EXT_DECL(struct ExecBase *,SysBase)
50 struct ETask *et;
52 et = FindChild((ULONG)tid);
53 if(et != NULL)
55 Remove((struct Node *)et);
57 if(et->et_Result2)
58 FreeVec(et->et_Result2);
60 #ifdef DEBUG_ETASK
61 FreeVec(IntETask(et)->iet_Me);
62 #endif
63 FreeVec(et);
66 AROS_LIBFUNC_EXIT
67 } /* ChildFree */