2
0
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:
Pavel Emelyanov
2013-01-17 18:14:55 +04:00
parent a46831aee9
commit ac845bd1d8
9 changed files with 28 additions and 28 deletions

4
net.c
View File

@@ -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();