diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index 3cca8a30d..6c84977d1 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -220,6 +220,8 @@ without needing to create and remove a temporary directory: .in +4n .EX chdir(new_root); +mount("", ".", MS_SLAVE | MS_REC, NULL); + /* Or: MS_PRIVATE | MS_REC */ pivot_root(".", "."); umount2(".", MNT_DETACH); .EE