X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=test%2Fbin%2Fbomb;h=b706edf6bed74afdd6defdf440f8864fbba24ab1;hp=044bf128eb3e8a2c77b0b51408205bc43ba61f05;hb=HEAD;hpb=85bb320aec82d0ceee5ca904a286b5a26d711c70 diff --git a/test/bin/bomb b/test/bin/bomb index 044bf12..b706edf 100755 --- a/test/bin/bomb +++ b/test/bin/bomb @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (c) 2014 Index Data ApS. http://indexdata.com # # bomb - wrapper to stop a process after N seconds @@ -8,6 +8,10 @@ # 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