<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container"><br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>Re: [CRIU] dump_sk_queue sk queue dumping done if ret ==
0</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Sun, 25 Aug 2013 11:29:47 +0400</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Ruslan Kuprieiev <a class="moz-txt-link-rfc2396E" href="mailto:kupruser@gmail.com"><kupruser@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td>Pavel Emelyanov <a class="moz-txt-link-rfc2396E" href="mailto:xemul@parallels.com"><xemul@parallels.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:criu@openvz.org">criu@openvz.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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 <a class="moz-txt-link-abbreviated" href="mailto:kupruser@gmail.com">kupruser@gmail.com</a>
>>
>>
>
> 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.
-----------
</pre>
Sorry, my mistake, it does not work. <br>
<br>
</div>
<br>
</body>
</html>