diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-12 20:58:34 +0100 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-26 23:41:44 +0100 |
commit | 57e069cde6617f00ca8834a82c6f360af43d5067 (patch) | |
tree | 48cbe15e96d217c45acfa64b0c13aad8c6424980 /recipes-core/jamvm/files/java-initial | |
download | meta-java-57e069cde6617f00ca8834a82c6f360af43d5067.tar.gz |
meta-java: initial commit
* taken over mostly stuff from oe classic
* cleaned up recipes
* added license checksums
* bump icedtea6-native to 1.8.11
* use jamvm from git as native
Diffstat (limited to 'recipes-core/jamvm/files/java-initial')
-rwxr-xr-x | recipes-core/jamvm/files/java-initial | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes-core/jamvm/files/java-initial b/recipes-core/jamvm/files/java-initial new file mode 100755 index 0000000..1b27f81 --- /dev/null +++ b/recipes-core/jamvm/files/java-initial | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Wrapper which (almost) silently restarts the VM in case of segfaults. | ||
4 | |||
5 | error_counter=0; | ||
6 | error_occured=139 | ||
7 | while [ ${error_counter} -le 50 -a ${error_occured} -eq 139 ]; do | ||
8 | echo "Running JamVM-initial: ${@}" | ||
9 | jamvm-initial ${1+"$@"} | ||
10 | error_occured=$? | ||
11 | if [ ${error_occured} -eq 139 ]; then | ||
12 | echo "JamVM-initial crashed - silently trying again" | ||
13 | error_counter=$(( $error_counter + 1 )) | ||
14 | fi | ||
15 | done | ||
16 | |||
17 | exit ${error_occured} | ||