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:
Pavel Emelyanov 2015-12-09 14:57:05 +03:00 committed by Pavel Emelyanov
parent 0420e09908
commit b8a9122d89
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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;

View file

@ -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