Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
4b4f6bc6
Commit
4b4f6bc6
authored
Oct 21, 2014
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more aggressive when tearing down chroots.
This way the chroot browsers will close faster.
parent
b584b60c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh
...ludes/usr/local/lib/tails-shell-library/chroot-browser.sh
+2
-2
No files found.
config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh
View file @
4b4f6bc6
...
...
@@ -15,10 +15,10 @@ try_cleanup_browser_chroot () {
local chroot
=
"
${
1
}
"
local
cow
=
"
${
2
}
"
local
user
=
"
${
3
}
"
try_for 10
"pkill -u
${
user
}
1>/dev/null 2>&1"
||
\
try_for 10
"pkill -u
${
user
}
1>/dev/null 2>&1"
0.1
||
\
pkill
-9
-u
${
user
}
1>/dev/null 2>&1
for
mnt
in
${
chroot
}
/dev
${
chroot
}
/proc
${
chroot
}
${
cow
}
;
do
try_for 10
"umount
${
mnt
}
2>/dev/null"
try_for 10
"umount
${
mnt
}
2>/dev/null"
0.1
done
rmdir
${
cow
}
${
chroot
}
2>/dev/null
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment