Changeset 715abe4


Ignore:
Timestamp:
2018-03-19T04:08:39Z (7 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
a81e6a0
Parents:
4528a52
Message:

bitlbee_daemon_init: friendlier error for EADDRINUSE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    r4528a52 r715abe4  
    119119        freeaddrinfo(addrinfo_bind);
    120120
     121        if (global.listen_socket == -1 && errno == EADDRINUSE) {
     122                log_message(LOGLVL_ERROR, "Can't listen on port %s. Is another bitlbee already running?",
     123                            global.conf->port);
     124                return(-1);
     125        }
     126
    121127        i = listen(global.listen_socket, 10);
    122128        if (i == -1) {
Note: See TracChangeset for help on using the changeset viewer.