signal returns SIG_ERR on error