mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
rpc: Add interface for --tcp-close option
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
committed by
Andrei Vagin
parent
dcf0c915e2
commit
844a72371a
11
lib/c/criu.c
11
lib/c/criu.c
@@ -321,6 +321,17 @@ void criu_set_tcp_skip_in_flight(bool tcp_skip_in_flight)
|
||||
criu_local_set_tcp_skip_in_flight(global_opts, tcp_skip_in_flight);
|
||||
}
|
||||
|
||||
void criu_local_set_tcp_close(criu_opts *opts, bool tcp_close)
|
||||
{
|
||||
opts->rpc->has_tcp_close = true;
|
||||
opts->rpc->tcp_close = tcp_close;
|
||||
}
|
||||
|
||||
void criu_set_tcp_close(bool tcp_close)
|
||||
{
|
||||
criu_local_set_tcp_close(global_opts, tcp_close);
|
||||
}
|
||||
|
||||
void criu_local_set_weak_sysctls(criu_opts *opts, bool val)
|
||||
{
|
||||
opts->rpc->has_weak_sysctls = true;
|
||||
|
Reference in New Issue
Block a user