listen: print debug message before bind()
Dump each socket address before binding to it.
This commit is contained in:
parent
5372ee406a
commit
7dec2a9bcb
@ -72,10 +72,17 @@ static bool
|
||||
listen_add_address(int pf, const struct sockaddr *addrp, socklen_t addrlen,
|
||||
GError **error)
|
||||
{
|
||||
char *address_string;
|
||||
int fd;
|
||||
struct listen_socket *ls;
|
||||
GIOChannel *channel;
|
||||
|
||||
address_string = sockaddr_to_string(addrp, addrlen, NULL);
|
||||
if (address_string != NULL) {
|
||||
g_debug("binding to socket address %s", address_string);
|
||||
g_free(address_string);
|
||||
}
|
||||
|
||||
fd = socket_bind_listen(pf, SOCK_STREAM, 0, addrp, addrlen, 5, error);
|
||||
if (fd < 0)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user