From: Donald Sharp Date: Sat, 22 Sep 2018 18:18:52 +0000 (-0400) Subject: lib: When we can't lock the pid file provide a meaningfull message X-Git-Tag: frr-7.1-dev~334^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3073%2Fhead;p=mirror%2Ffrr.git lib: When we can't lock the pid file provide a meaningfull message Give a hint to the end user that the daemon may already be running. Signed-off-by: Donald Sharp --- diff --git a/lib/pid_output.c b/lib/pid_output.c index b0643c4fe2..f5f7b1d171 100644 --- a/lib/pid_output.c +++ b/lib/pid_output.c @@ -60,7 +60,7 @@ pid_t pid_output(const char *path) if (fcntl(fd, F_SETLK, &lock) < 0) { flog_err_sys(EC_LIB_SYSTEM_CALL, - "Could not lock pid_file %s (%s), exiting", + "Could not lock pid_file %s (%s), exiting. Please ensure that the daemon is not already running", path, safe_strerror(errno)); exit(1); }