(1) I've managed this by putting the extern ptrace declaration in a seperate file and call it via filename.ptrace in my program. Apparently a new std.process is in the works that does supply a sort of fork(). I'm sorry for not looking through things properly before.