Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mkws
[mkws-moved-to-github.git] / test / bin / bomb
index 0be1dd5..c511b36 100755 (executable)
@@ -8,10 +8,14 @@
 # to the process group will not kill any parent processes.
 set -o monitor
 
+# the maximum amount of cpu time in seconds
+# last resort if BSD::Resource is not available in ./bomb.pl
+ulimit -t 120
+
 # now run the perl script. For unknown reasons, the
 # call to setpgrp() in perl does not work as expected,
 # and we solve the issue by this simple shell wrapper
 
-exec $0.pl "$@"
+perl $0.pl "$@"
 
 # EOF