]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: add a better error message when we cannot create the unix socket
authorVincent Bernat <bernat@luffy.cx>
Fri, 2 Mar 2012 14:22:04 +0000 (15:22 +0100)
committerVincent Bernat <bernat@luffy.cx>
Fri, 2 Mar 2012 14:22:04 +0000 (15:22 +0100)
src/priv.c

index 6e715e97bce196bac4130ca72d9da361e65cc384..217cac9e3d392c38caa2d604a517372cb4c4606f 100644 (file)
@@ -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;
        }