Fixed error handling routine around fork(2).