|
@@ -1034,7 +1034,7 @@ static int totemudpu_create_sending_socket(
|
|
|
if (res == -1) {
|
|
if (res == -1) {
|
|
|
LOGSYS_PERROR (errno, instance->totemudpu_log_level_warning,
|
|
LOGSYS_PERROR (errno, instance->totemudpu_log_level_warning,
|
|
|
"Could not set non-blocking operation on token socket");
|
|
"Could not set non-blocking operation on token socket");
|
|
|
- return (-1);
|
|
|
|
|
|
|
+ goto error_close_fd;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1047,6 +1047,9 @@ static int totemudpu_create_sending_socket(
|
|
|
if (res == -1) {
|
|
if (res == -1) {
|
|
|
LOGSYS_PERROR (errno, instance->totemudpu_log_level_notice,
|
|
LOGSYS_PERROR (errno, instance->totemudpu_log_level_notice,
|
|
|
"Could not set sendbuf size");
|
|
"Could not set sendbuf size");
|
|
|
|
|
+ /*
|
|
|
|
|
+ * Fail in setting sendbuf size is not fatal -> don't exit
|
|
|
|
|
+ */
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1057,11 +1060,14 @@ static int totemudpu_create_sending_socket(
|
|
|
if (res == -1) {
|
|
if (res == -1) {
|
|
|
LOGSYS_PERROR (errno, instance->totemudpu_log_level_warning,
|
|
LOGSYS_PERROR (errno, instance->totemudpu_log_level_warning,
|
|
|
"bind token socket failed");
|
|
"bind token socket failed");
|
|
|
- return (-1);
|
|
|
|
|
|
|
+ goto error_close_fd;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (fd);
|
|
return (fd);
|
|
|
|
|
|
|
|
|
|
+error_close_fd:
|
|
|
|
|
+ close(fd);
|
|
|
|
|
+ return (-1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int totemudpu_member_add (
|
|
int totemudpu_member_add (
|