mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
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:
1 parent
e02f8cf353
commit
83078d1947
1 file changed
+2
-1
@@ -398,7 +398,8 @@ svc_t *svc_find_by_pidfile(char *fn)
|
|||||||
|
|
||||||
pid_runpath(fn, adjpath, sizeof(adjpath));
|
pid_runpath(fn, adjpath, sizeof(adjpath));
|
||||||
if (!realpath(adjpath, fnpath)) {
|
if (!realpath(adjpath, fnpath)) {
|
||||||
_pe("adjpath: %s, errno %d", adjpath, errno);
|
if (errno != ENOENT)
|
||||||
|
_pe("adjpath: %s, errno %d", adjpath, errno);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user