g a partial result or EINTR), properly invokes the signal
        handler and retries if the latter returned successfully.