36b71d43319a52b512fcb4bdd74205adf1014ff9
[gruntmaster-daemon.git] / gruntmaster-exec
1 #!/usr/bin/perl -w
2 use v5.14;
3 use strict;
4
5 use BSD::Resource qw/setrlimit RLIMIT_AS RLIMIT_FSIZE/;
6 use sigtrap qw/XFSZ/;
7
8 ##################################################
9
10 my ($mlimit, $olimit, @args) = @ARGV;
11
12 setrlimit RLIMIT_AS, $mlimit, $mlimit or die $! if $mlimit;
13 setrlimit RLIMIT_FSIZE, $olimit, $olimit or die $! if $olimit;
14 exec @args;
This page took 0.020932 seconds and 3 git commands to generate.