forked from epics_driver_modules/require
fix for reliably killing the softIoc when the iocsh gets killed
This commit is contained in:
@@ -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)}\""
|
||||
|
||||
Reference in New Issue
Block a user