2 Copyright © 2004-2013, The AROS Development Team. All rights reserved.
8 #include <exec/tasks.h>
9 #include <proto/exec.h>
14 #include "__posixc_intbase.h"
16 /*****************************************************************************
42 ******************************************************************************/
44 struct PosixCIntBase
*PosixCBase
=
45 (struct PosixCIntBase
*)__aros_getbase_PosixCBase();
46 struct Task
*ParentTask
;
47 struct ETask
*eThisTask
;
50 if(PosixCBase
->flags
& PRETEND_CHILD
)
52 struct vfork_data
*udata
= PosixCBase
->vfork_data
;
53 eThisTask
= GetETask(udata
->child
);
56 eThisTask
= GetETask(FindTask(NULL
));
58 ParentTask
= (struct Task
*)eThisTask
->et_Parent
;
61 et
= GetETask(ParentTask
);
63 return (pid_t
) et
->et_UniqueID
;