that -1 is returned when the fork fails. Updated implementation to use int rather than deprecated "union wait". Updated documentation to describe error / return values.