1 #include <proto/exec.h>
2 #include <dos/dosextens.h>
13 struct Process
*child
;
15 struct TagItem tags
[] =
17 { NP_Entry
, (IPTR
) entry
},
18 { NP_Cli
, (IPTR
) TRUE
},
19 { NP_Name
, (IPTR
) "test" },
20 { NP_NotifyOnDeath
, (IPTR
) TRUE
},
24 child
= CreateNewProc(tags
);
28 ULONG childid
= GetETask((struct Task
*) child
)->et_UniqueID
;
29 Printf("Waiting for child with id %d\n", childid
);
31 Printf("Child exited, freeing child\n");
35 PrintFault(IoErr(), "Couldn't create child process");