2 Copyright © 2004, The AROS Development Team. All rights reserved.
9 #include <exec/tasks.h>
10 #include <proto/exec.h>
15 #include "__arosc_privdata.h"
17 /*****************************************************************************
42 ******************************************************************************/
44 struct Task
*ParentTask
;
45 struct ETask
*eThisTask
;
48 if(__get_arosc_privdata()->acpd_flags
& PRETEND_CHILD
)
50 struct vfork_data
*udata
= __get_arosc_privdata()->acpd_vfork_data
;
51 eThisTask
= GetETask(udata
->child
);
54 eThisTask
= GetETask(FindTask(NULL
));
56 ParentTask
= (struct Task
*)eThisTask
->et_Parent
;
59 et
= GetETask(ParentTask
);
61 return (pid_t
) et
->et_UniqueID
;