Ignore ENOENT from realpath(), origin probably moved

The svc_find_by_pidfile() function is called async from the pidfile
plugin, so by the time the queue is processed the origin may have
moved or been removed even.  Safe to ignore.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2020-04-26 21:46:24 +02:00
parent e02f8cf353
commit 83078d1947
+2 -1
View File
@@ -398,7 +398,8 @@ svc_t *svc_find_by_pidfile(char *fn)
pid_runpath(fn, adjpath, sizeof(adjpath));
if (!realpath(adjpath, fnpath)) {
_pe("adjpath: %s, errno %d", adjpath, errno);
if (errno != ENOENT)
_pe("adjpath: %s, errno %d", adjpath, errno);
return NULL;
}