[CRIU] dump_sk_queue sk queue dumping done if ret == 0
Ruslan Kuprieiev
kupruser at gmail.com
Sun Aug 25 03:29:47 EDT 2013
On 08/25/2013 11:04 AM, Pavel Emelyanov wrote:
> On 08/25/2013 02:29 AM, Ruslan Kuprieiev wrote:
>> Hi all!
>>
>> dump_sk_queue() assumes end of queue if EAGAIN is returned, but kernel
>> in net/unix/af_unix.c:unix_stream_recvmsg() returns 0, if second end of
>> socket is closed.
>> This cause running into loop and writing zeros to img, when dumping pair
>> of sockets, where data is stored and one side if closed.
>>
>> Signed-off-by: Ruslan Kuprieiev kupruser at gmail.com
>>
>>
>
> I need the respective test in zdtm/ and fixes for restore.
Add test for data lost to sockets02.c or add it as separate file?
What fixes for restore?
I tried to c\r program with data in half closed socket pair and it works.
More information about the CRIU
mailing list