Commit 7dadadc8 authored by Tails developers's avatar Tails developers

Fix "tails-security-check-wrapper eats all memory when run offline".

Wait for the /var/run/tordate directory to appear before trying to watch it
with inotify.

Avoid filling "disk", i.e. RAM, with error messages sent in endless loop in
~/.xsession-errors when no network connection is up.
parent e21b0e6e
......@@ -4,6 +4,11 @@ TORDATE_DIR=/var/run/tordate
TORDATE_DONE_FILE="${TORDATE_DIR}/done"
INOTIFY_TIMEOUT=60
# wait for the $TORDATE_DIR directory to appear
while [ ! -d "$TORDATE_DIR" ]; do
sleep 10
done
# wait for a guarantee that time is in Tor valid range
while :; do
if [ -e "$TORDATE_DONE_FILE" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment