Skip to content
Snippets Groups Projects
Commit 1acff102 authored by Martin Strbacka's avatar Martin Strbacka
Browse files

mail_notifier: Added trap which cleans locker.

parent 9d84c768
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,8 @@ mark_msgs() {
send_mail() {
lock $locker_stamp
trap 'unlock $locker_stamp' EXIT ABRT QUIT TERM HUP INT
compose_message
if [ ! -f $msg_file ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment