The Linux specific function call, clone, is an alternative to fork that provides more control over which process resources are shared between the parent and child processes.
#include <sched.h>
int __clone(int (*fn) (void *arg), void *child_stack, int flags,
void *arg)