mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
libcriu: Add orphan pts master
The orphan pts master option was introduced with commit [1]
to enable checkpoint/restore of containers with a pty pair
used as a console.
[1] 6afe523d97
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
This commit is contained in:
committed by
Andrei Vagin
parent
f6d1b498dc
commit
ae4fd07ca5
11
lib/c/criu.c
11
lib/c/criu.c
@@ -541,6 +541,17 @@ void criu_set_shell_job(bool shell_job)
|
||||
criu_local_set_shell_job(global_opts, shell_job);
|
||||
}
|
||||
|
||||
void criu_local_set_orphan_pts_master(criu_opts *opts, bool orphan_pts_master)
|
||||
{
|
||||
opts->rpc->has_orphan_pts_master = true;
|
||||
opts->rpc->orphan_pts_master = orphan_pts_master;
|
||||
}
|
||||
|
||||
void criu_set_orphan_pts_master(bool orphan_pts_master)
|
||||
{
|
||||
criu_local_set_orphan_pts_master(global_opts, orphan_pts_master);
|
||||
}
|
||||
|
||||
void criu_local_set_file_locks(criu_opts *opts, bool file_locks)
|
||||
{
|
||||
opts->rpc->has_file_locks = true;
|
||||
|
@@ -72,6 +72,7 @@ void criu_set_tcp_close(bool tcp_close);
|
||||
void criu_set_weak_sysctls(bool val);
|
||||
void criu_set_evasive_devices(bool evasive_devices);
|
||||
void criu_set_shell_job(bool shell_job);
|
||||
void criu_set_orphan_pts_master(bool orphan_pts_master);
|
||||
void criu_set_file_locks(bool file_locks);
|
||||
void criu_set_track_mem(bool track_mem);
|
||||
void criu_set_auto_dedup(bool auto_dedup);
|
||||
@@ -185,6 +186,7 @@ void criu_local_set_tcp_close(criu_opts *opts, bool tcp_close);
|
||||
void criu_local_set_weak_sysctls(criu_opts *opts, bool val);
|
||||
void criu_local_set_evasive_devices(criu_opts *opts, bool evasive_devices);
|
||||
void criu_local_set_shell_job(criu_opts *opts, bool shell_job);
|
||||
void criu_local_set_orphan_pts_master(criu_opts *opts, bool orphan_pts_master);
|
||||
void criu_local_set_file_locks(criu_opts *opts, bool file_locks);
|
||||
void criu_local_set_track_mem(criu_opts *opts, bool track_mem);
|
||||
void criu_local_set_auto_dedup(criu_opts *opts, bool auto_dedup);
|
||||
|
Reference in New Issue
Block a user