mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
sk-tcp: Print libsoccr_save() error message
Improve dump_tcp_conn_state() *debugibility*. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
dc4d61f84f
commit
7148e16b31
2 changed files with 5 additions and 3 deletions
|
|
@ -374,10 +374,10 @@ int libsoccr_save(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigne
|
|||
sk->flags |= SK_FLAG_FREE_SQ | SK_FLAG_FREE_RQ;
|
||||
|
||||
if (get_queue(sk->fd, TCP_RECV_QUEUE, &data->inq_seq, data->inq_len, &sk->recv_queue))
|
||||
return -4;
|
||||
return -5;
|
||||
|
||||
if (get_queue(sk->fd, TCP_SEND_QUEUE, &data->outq_seq, data->outq_len, &sk->send_queue))
|
||||
return -5;
|
||||
return -6;
|
||||
|
||||
return sizeof(struct libsoccr_sk_data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue