Fixed fork()-ed process code coverage. Removed some unused functions