Commit 8ff15e5c authored by Pavel Emelyanov's avatar Pavel Emelyanov

util: Make set_proc_mountpoint static

And rename it to better reflect what it does.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e2a0258d
......@@ -140,7 +140,6 @@ extern int reopen_fd_as_safe(char *file, int line, int new_fd, int old_fd, bool
#define reopen_fd_as(new_fd, old_fd) reopen_fd_as_safe(__FILE__, __LINE__, new_fd, old_fd, false)
#define reopen_fd_as_nocheck(new_fd, old_fd) reopen_fd_as_safe(__FILE__, __LINE__, new_fd, old_fd, true)
int set_proc_mountpoint(char *path);
void close_proc(void);
int open_pid_proc(pid_t pid);
int close_pid_proc(void);
......
......@@ -184,7 +184,7 @@ int set_proc_fd(int fd)
return 0;
}
int set_proc_mountpoint(char *path)
static int open_proc_sfd(char *path)
{
int fd, ret;
close_proc();
......@@ -216,7 +216,7 @@ inline int open_pid_proc(pid_t pid)
dfd = get_service_fd(PROC_FD_OFF);
if (dfd < 0) {
if (set_proc_mountpoint("/proc") < 0)
if (open_proc_sfd("/proc") < 0)
return -1;
dfd = get_service_fd(PROC_FD_OFF);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment