X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=test%2Fbin%2Fbomb;h=b706edf6bed74afdd6defdf440f8864fbba24ab1;hp=0be1dd5aa682fbb452a6597de0df55492ffc7680;hb=ff4ef5a862a96d76c8a52557452105e9757a58af;hpb=3a02954004128918e2e53eef213c611023512ed2 diff --git a/test/bin/bomb b/test/bin/bomb index 0be1dd5..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,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