Make sure to capture all exit signals so that closing is handled correctly.
This commit is contained in:
@@ -339,7 +339,7 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
# If there were args, the program was controled by those and we do not need the menu.
|
# If there were args, the program was controled by those and we do not need the menu.
|
||||||
if [ $argNum -gt 0 ]; then
|
if [ $argNum -gt 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user