mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
fds: Remove unused arg from close_old_fds()
Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
0420e09908
commit
b8a9122d89
3 changed files with 3 additions and 3 deletions
|
|
@ -1555,7 +1555,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;
|
||||
}
|
||||
|
|
|
|||
2
files.c
2
files.c
|
|
@ -1022,7 +1022,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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue