mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
cr: Obsolete the --namespaces option
It's no longer required to use this option -- two currently supported cases (tasks on host and tasks in containers) can be detected automatically. Keep this option for future. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
4
net.c
4
net.c
@@ -382,7 +382,7 @@ int network_lock(void)
|
||||
pr_info("Lock network\n");
|
||||
|
||||
/* Each connection will be locked on dump */
|
||||
if (!(opts.namespaces_flags & CLONE_NEWNET))
|
||||
if (!(current_ns_mask & CLONE_NEWNET))
|
||||
return 0;
|
||||
|
||||
return run_scripts("network-lock");
|
||||
@@ -392,7 +392,7 @@ void network_unlock(void)
|
||||
{
|
||||
pr_info("Unlock network\n");
|
||||
|
||||
if (!(opts.namespaces_flags & CLONE_NEWNET)) {
|
||||
if (!(current_ns_mask & CLONE_NEWNET)) {
|
||||
cpt_unlock_tcp_connections();
|
||||
rst_unlock_tcp_connections();
|
||||
|
||||
|
Reference in New Issue
Block a user