Function ProcessManager.alloc

Allocate a new handler for a child process.

mecca.reactor.lib.process.ProcessManager.ProcessPtr alloc () nothrow @nogc @safe;

This is the way to allocate a new child process handler.

Returns a smart object referencing the Process struct. Struct is destructed when the referenece is destructed. If the reference is destructed, this is effectively the same as detaching from the running process. The process remains running, but we will no longer be notified when it exits.