[CRIU] Re: [PATCH v2] restore: close opened fd
Kinsbursky Stanislav
skinsbursky at openvz.org
Tue Feb 21 03:07:31 EST 2012
20.02.2012 21:49, Pavel Emelyanov пишет:
>> static int fixup_pages_data(int pid, int fd)
>> > {
>> > - int pgfd, ret;
>> > + int pgfd = -1, shmfd = -1, ret = -1;
> Why do we replace one fd with two?
Because they referencing different objects. I was confused with one fd for both
files - that's why I changed it.
--
Best regards,
Stanislav Kinsbursky
More information about the CRIU
mailing list