spawnveg - process spawn with process group and session control
int spawnveg(const char* command, char** argv, char** envv, pid_t pgid);
into a single call.
are as in
controls the new process group and session:
The new process becomes a session leader.
is called in the child context.
The new process is in the callers process group.
The new process becomes a process group leader.
The new process joins the process group
It is possible to code all process creation (except for
hack like in
do this on systems that don't support
This makes porting to NT and Windows a snap: a simple
probe provides a
implementation using the NT or Windows process primitives.
fork(2), exec(2), setpgid(2), setsid(2), spawnve(2)