2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-07 09:46:20 +00:00

restore: disable repair mode in post_open()

A disabling repair mode drops SO_REUSEADDR.

We can set SO_REUSEADDR after disabling repair mode, but
a small race window exists in this case.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-08-27 16:55:00 +04:00
committed by Pavel Emelyanov
parent c00038042d
commit 458cb41f57
3 changed files with 15 additions and 8 deletions

View File

@@ -33,6 +33,7 @@ struct inet_sk_info {
int inet_bind(int sk, struct inet_sk_info *);
int inet_connect(int sk, struct inet_sk_info *);
void tcp_repair_off(int sk);
void tcp_unlock_all(void);
void tcp_locked_conn_add(struct inet_sk_info *);
void tcp_unlock_connections(void);