2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
7 #include <dos/dosextens.h>
18 struct Process
*child
;
20 struct TagItem tags
[] =
22 { NP_Entry
, (IPTR
) entry
},
23 { NP_Cli
, (IPTR
) TRUE
},
24 { NP_Name
, (IPTR
) "test" },
25 { NP_NotifyOnDeath
, (IPTR
) TRUE
},
29 child
= CreateNewProc(tags
);
33 ULONG childid
= GetETask((struct Task
*) child
)->et_UniqueID
;
34 Printf("Waiting for child with id %d\n", childid
);
36 Printf("Child exited, freeing child\n");
40 PrintFault(IoErr(), "Couldn't create child process");