Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
metaclade2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Riccardo Vicedomini
metaclade2
Commits
8da900e4
Commit
8da900e4
authored
Apr 25, 2020
by
Riccardo Vicedomini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed problem with trap
parent
b2a5d472
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
metaclade2
metaclade2
+2
-4
No files found.
metaclade2
View file @
8da900e4
...
...
@@ -13,10 +13,8 @@
# with MetaCLADE2. If not, see <https://cecill.info/>.
#
# Pressing CTRL-C will stop the whole execution of the script
trap
ctrl_c INT
;
function
ctrl_c
()
{
exit
5
;
}
# Exit from this script causes child processes (pending jobs) to stop execution
trap
'kill $(jobs -p)'
EXIT
trap
ctrl_c INT TERM ERR
;
function
ctrl_c
()
{
exit
5
;
}
trap
'kill 0'
EXIT
CMD_DIR
=
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment