mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
sockets: Allow to dump unix sockets with inflight connections
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
b21c2c8c1d
commit
641844c349
18
sockets.c
18
sockets.c
@ -217,26 +217,8 @@ static int can_dump_unix_sk(struct unix_sk_desc *sk)
|
|||||||
|
|
||||||
switch (sk->state) {
|
switch (sk->state) {
|
||||||
case TCP_LISTEN:
|
case TCP_LISTEN:
|
||||||
if (sk->rqlen != 0) {
|
|
||||||
/*
|
|
||||||
* Currently the ICONS nla reports the conn
|
|
||||||
* requests for listen sockets. Need to pick
|
|
||||||
* those up and fix the connect job respectively
|
|
||||||
*/
|
|
||||||
pr_err("In-flight connection (l)\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case TCP_ESTABLISHED:
|
case TCP_ESTABLISHED:
|
||||||
if (!sk->peer_ino) {
|
|
||||||
/*
|
|
||||||
* Read above
|
|
||||||
*/
|
|
||||||
pr_err("In-flight connection\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sk->rqlen) {
|
if (sk->rqlen) {
|
||||||
/*
|
/*
|
||||||
* The hard case :( Currentl there's no way to
|
* The hard case :( Currentl there's no way to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user