2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-02 23:35:21 +00:00

util: Make set_proc_fd report success/error only

Returning the new proc fd value is useless.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-08-11 19:51:02 +04:00
parent 3e6f1ae82d
commit cdce5d216d
2 changed files with 6 additions and 7 deletions

4
util.c
View File

@@ -179,7 +179,9 @@ void close_proc()
int set_proc_fd(int fd)
{
return install_service_fd(PROC_FD_OFF, fd);
if (install_service_fd(PROC_FD_OFF, fd) < 0)
return -1;
return 0;
}
int set_proc_mountpoint(char *path)