Implementation of fork&exec and related functionality.
