From: Vincent Bernat Date: Fri, 2 Mar 2012 14:22:04 +0000 (+0100) Subject: lldpd: add a better error message when we cannot create the unix socket X-Git-Tag: 0.6.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9317c745c469928e5bf7bc949e196478786735f;p=thirdparty%2Flldpd.git lldpd: add a better error message when we cannot create the unix socket --- diff --git a/src/priv.c b/src/priv.c index 6e715e97..217cac9e 100644 --- a/src/priv.c +++ b/src/priv.c @@ -212,6 +212,8 @@ asroot_ctl_create() int rc; if ((rc = ctl_create(LLDPD_CTL_SOCKET)) == -1) { LLOG_WARN("[priv]: unable to create control socket"); + LLOG_WARNX("[priv]: If another instance is running, please stop it."); + LLOG_WARNX("[priv]: Otherwise, remove " LLDPD_CTL_SOCKET); must_write(remote, &rc, sizeof(int)); return; }