aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-10-19 23:18:23 -0400
committerWilmer van der Gaast <wilmer@gaast.net>2011-10-19 23:18:23 -0400
commit4c225f062d3f7c9474890692caffb34768fb7b15 (patch)
treecf3b6fa87263c5d1d4aa069189d8299da316e9ce
parent32bea82d26872395634862204f551644233454ae (diff)
Drop the on-disk IPC socket by default. Nothing uses it. If one really wants
it, it can be restored using the --ipcsocket= configure option.
-rwxr-xr-xconfigure3
-rw-r--r--ipc.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index c10b1f6b..24ac93cd 100755
--- a/configure
+++ b/configure
@@ -18,7 +18,7 @@ includedir='$prefix/include/bitlbee/'
systemdsystemunitdir=''
libevent='/usr/'
pidfile='/var/run/bitlbee.pid'
-ipcsocket='/var/run/bitlbee.sock'
+ipcsocket=''
pcdir='$prefix/lib/pkgconfig'
systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64"
@@ -66,7 +66,6 @@ Option Description Default
--systemdsystemunitdir=... $systemdsystemunitdir
--pidfile=... $pidfile
--config=... $config
---ipcsocket=... $ipcsocket
--msn=0/1 Disable/enable MSN part $msn
--jabber=0/1 Disable/enable Jabber part $jabber
diff --git a/ipc.c b/ipc.c
index 884039d2..5da9d8e4 100644
--- a/ipc.c
+++ b/ipc.c
@@ -908,6 +908,9 @@ int ipc_master_listen_socket()
struct sockaddr_un un_addr;
int serversock;
+ if (!IPCSOCKET || !*IPCSOCKET)
+ return 1;
+
/* Clean up old socket files that were hanging around.. */
if (unlink(IPCSOCKET) == -1 && errno != ENOENT) {
log_message( LOGLVL_ERROR, "Could not remove old IPC socket at %s: %s", IPCSOCKET, strerror(errno) );