Hi All,
Is there any way to change the cputime limit of a running process?

suppose I have a sample program say sample.c

int main()
{
         struct rlimit rl;
         rl.rlim_cur = 60;
         setrlimit(RLIMIT_CPU, &rl);
         while(1);10
         return 0;
}

gcc sample.c -o sample

suppose I ran the process, after say 10secs I want to change the cputime of
the running process (./sample) to
120 secs/may be less than current say 50secs, is it possible , if yes any
api() or anyway?

Thanks in advance.

Regards,
Santosh

Reply via email to