[CRIU] [PATCH 11/17] unix: Don's spam with warning if nothing to unlink
Cyrill Gorcunov
gorcunov at gmail.com
Fri Apr 27 14:34:59 MSK 2018
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
criu/sk-unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index 6d06e539395f..c99ae4442449 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -1765,7 +1765,7 @@ static void unlink_stale(struct unix_sk_info *ui)
return;
ret = unlinkat(AT_FDCWD, ui->name, 0) ? -1 : 0;
- if (ret < 0) {
+ if (ret < 0 && errno != ENOENT) {
pr_warn("Can't unlink stale socket %#x peer %#x (name %s dir %s)\n",
ui->ue->ino, ui->ue->peer,
ui->name ? (ui->name[0] ? ui->name : &ui->name[1]) : "-",
--
2.14.3
More information about the CRIU
mailing list