Update API to comply with pcntl_signal function
Update unit tests