From a9317c745c469928e5bf7bc949e196478786735f Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 2 Mar 2012 15:22:04 +0100 Subject: [PATCH] lldpd: add a better error message when we cannot create the unix socket --- src/priv.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5