mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
sockets: Allow to dump dgram sockets
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
@@ -91,12 +91,9 @@ static void show_one_unix_img(char *act, struct unix_sk_entry *e)
|
||||
|
||||
static int can_dump_unix_sk(struct unix_sk_desc *sk)
|
||||
{
|
||||
if (sk->type != SOCK_STREAM) {
|
||||
/*
|
||||
* Dgram sockets connect and accept jobs at
|
||||
* restore time should be fixed
|
||||
*/
|
||||
pr_err("Only stream sockets for now\n");
|
||||
if (sk->type != SOCK_STREAM &&
|
||||
sk->type != SOCK_DGRAM) {
|
||||
pr_err("Only stream/dgram sockets for now\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user