Skip to content
Snippets Groups Projects
Commit 0f8c9a55 authored by Dirk Zimoch's avatar Dirk Zimoch
Browse files

fix for reliably killing the softIoc when the iocsh gets killed

parent 62feab2c
No related branches found
No related tags found
No related merge requests found
......@@ -304,7 +304,10 @@ done
}
startup=/tmp/iocsh.startup.$$
trap "stty sane; echo; rm -f $startup" EXIT TERM KILL
# clean up and kill the softIoc when killed by any signal
trap "kill -s SIGTERM 0; stty sane; echo; rm -f $startup; " EXIT
{
echo "# date=\"$(date)\""
echo "# user=\"${USER:-$(whoami)}\""
......
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