aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-java-example.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-11-02 16:14:28 +0100
committerSven Gothel <[email protected]>2021-11-02 16:14:28 +0100
commit5294a2ef356758695156a1b29a9b54cab59f46a5 (patch)
tree7fdd2d2bfa7521b3752f9b7a6e775468736843f1 /scripts/run-java-example.sh
parent6fa94e1e1e59e517f7d30dde4015630e5aaed7ae (diff)
scripts/run-*-example.sh: Set kernel core pattern, to be sure of name and location (current dir) of core file.
Diffstat (limited to 'scripts/run-java-example.sh')
-rwxr-xr-xscripts/run-java-example.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/run-java-example.sh b/scripts/run-java-example.sh
index 88c57fdd..27b19efe 100755
--- a/scripts/run-java-example.sh
+++ b/scripts/run-java-example.sh
@@ -62,6 +62,7 @@ rm -f $valgrindlogfile
callgrindoutfile=$logbasename-callgrind.out
rm -f $callgrindoutfile
+echo 'core_%e.%p' | sudo tee /proc/sys/kernel/core_pattern
ulimit -c unlimited
# run as root 'dpkg-reconfigure locales' enable 'en_US.UTF-8'