2
0
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:
Cyrill Gorcunov
2011-12-30 23:55:06 +04:00
parent 04ec43a5d5
commit 054bf4ada2

View File

@@ -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;
}