diff options
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 947ec5d71..8a0aa72a0 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -243,13 +243,6 @@ struct UNIX_Sock_Info | |||
243 | * The network handle | 243 | * The network handle |
244 | */ | 244 | */ |
245 | struct GNUNET_NETWORK_Handle *desc; | 245 | struct GNUNET_NETWORK_Handle *desc; |
246 | |||
247 | /** | ||
248 | * The port we bound to (not an actual PORT, as UNIX domain sockets | ||
249 | * don't have ports, but rather a number in the path name to make this | ||
250 | * one unique). | ||
251 | */ | ||
252 | uint16_t port; | ||
253 | }; | 246 | }; |
254 | 247 | ||
255 | 248 | ||
@@ -300,7 +293,7 @@ struct Plugin | |||
300 | struct UNIXMessageWrapper *msg_tail; | 293 | struct UNIXMessageWrapper *msg_tail; |
301 | 294 | ||
302 | /** | 295 | /** |
303 | * Path of our unix domain socket (/tmp/unix-plugin-PORT) | 296 | * Path of our unix domain socket (/tmp/unix-plugin) |
304 | */ | 297 | */ |
305 | char *unix_socket_path; | 298 | char *unix_socket_path; |
306 | 299 | ||
@@ -1420,6 +1413,8 @@ unix_transport_server_start (void *cls) | |||
1420 | (const struct sockaddr *) un, un_len)) | 1413 | (const struct sockaddr *) un, un_len)) |
1421 | { | 1414 | { |
1422 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "bind"); | 1415 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "bind"); |
1416 | LOG (GNUNET_ERROR_TYPE_ERROR, _("Cannot bind to `%s'\n"), | ||
1417 | un->sun_path); | ||
1423 | GNUNET_NETWORK_socket_close (plugin->unix_sock.desc); | 1418 | GNUNET_NETWORK_socket_close (plugin->unix_sock.desc); |
1424 | plugin->unix_sock.desc = NULL; | 1419 | plugin->unix_sock.desc = NULL; |
1425 | GNUNET_free (un); | 1420 | GNUNET_free (un); |