[CRIU] [PATCH 1/6] fds: Remove unused arg from close_old_fds()

Pavel Emelyanov xemul at parallels.com
Wed Dec 9 03:57:05 PST 2015


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 cr-restore.c    | 2 +-
 files.c         | 2 +-
 include/files.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 3c636b9..74f4b90 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1514,7 +1514,7 @@ static int restore_task_with_children(void *_arg)
 	}
 
 	if (!(ca->clone_flags & CLONE_FILES)) {
-		ret = close_old_fds(current);
+		ret = close_old_fds();
 		if (ret)
 			goto err;
 	}
diff --git a/files.c b/files.c
index da6a5ae..f71f9f3 100644
--- a/files.c
+++ b/files.c
@@ -1011,7 +1011,7 @@ static int open_fdinfos(int pid, struct list_head *list, int state)
 
 static struct inherit_fd *inherit_fd_lookup_fd(int fd, const char *caller);
 
-int close_old_fds(struct pstree_item *me)
+int close_old_fds(void)
 {
 	DIR *dir;
 	struct dirent *de;
diff --git a/include/files.h b/include/files.h
index db7e108..52936ff 100644
--- a/include/files.h
+++ b/include/files.h
@@ -156,7 +156,7 @@ extern int restore_fs(struct pstree_item *);
 extern int prepare_fs_pid(struct pstree_item *);
 extern int set_fd_flags(int fd, int flags);
 
-extern int close_old_fds(struct pstree_item *me);
+extern int close_old_fds(void);
 #ifndef AT_EMPTY_PATH
 #define AT_EMPTY_PATH 0x1000
 #endif
-- 
1.9.3




More information about the CRIU mailing list