Commit d2a4be58 authored by geb's avatar geb

Udev may close child processes when a process associated with a rule

(/etc/udev/rules) terminates. As mac spoofing notifications processes
are launched in background, with a static wait, they may be killed
before the message is effectively displayed.
This patch makes tails-spoof-mac wait for those processes before
exiting. It may makes tails-spoof-mac wait indefinitely. However,
udev will ensure it terminates after 120 seconds.
parent dd8bda1d
......@@ -149,6 +149,11 @@ then
log "Panic mode failed for NIC ${NIC}."
stop_and_disable_NM
fi
# Wait for the notification subprocess to exit before quitting to
# prevent them being interupted by underlying process manager (udev)
# once we quit. Note that it could make us wait indefinitely.
# Fortunately, udev will interupts rules tasks after 120 seconds.
wait
exit 1
fi
......
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