[CRIU] [PATCH 1/3] unix: turn down unlink warning

Tycho Andersen tycho.andersen at canonical.com
Tue Nov 10 13:05:41 PST 2015


This isn't really an, so let's call it a warning.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 sk-unix.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sk-unix.c b/sk-unix.c
index ba22f1c..91e4263 100644
--- a/sk-unix.c
+++ b/sk-unix.c
@@ -1239,10 +1239,10 @@ static void unlink_stale(struct unix_sk_info *ui)
 
 	ret = unlinkat(AT_FDCWD, ui->name, 0) ? -1 : 0;
 	if (ret < 0) {
-		pr_perror("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]) : "-",
-			  ui->name_dir ? ui->name_dir : "-");
+		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]) : "-",
+			ui->name_dir ? ui->name_dir : "-");
 	}
 	revert_unix_sk_cwd(&cwd_fd);
 }
-- 
2.6.2



More information about the CRIU mailing list