fence-virt: Fail properly if unable to bind the listener socket
Bail out properly in multicast mode if we're unable to bind the TCP listener socket. Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
This commit is contained in:
parent
3ee04afd41
commit
04710b4079
@ -313,11 +313,14 @@ mcast_fence_virt(fence_virt_args_t *args)
|
||||
if (lfd < 0) {
|
||||
printf("Failed to listen: %s\n", strerror(errno));
|
||||
usleep(args->retr_time * 100000);
|
||||
--attempts;
|
||||
continue;
|
||||
if (--attempts > 0)
|
||||
continue;
|
||||
}
|
||||
} while (0);
|
||||
|
||||
if (lfd < 0)
|
||||
return -1;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
seqno = (uint32_t)tv.tv_usec;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user