As the title suggests i need to know if there is some way to have less then second precision with the setrlimit RLIMIT_CPU ?
struct rlimit cpulimit;
cpulimit.rlim_cur = 5; // 5 seconds SIGXCPU
cpulimit.rlim_max = 5; // 5 seconds SIGKILL
( I know that on a typical system a program may take on ~10ms at a time ) I do not even need it to be a millisecond precision. 100ms will do just fine.
So I am curious could it be something like this:
struct rlimit cpulimit;
cpulimit.rlim_cur = 3500; // 3.5 seconds SIGXCPU
cpulimit.rlim_max = 4500; // 4.5 seconds SIGKILL
I do not see the relevance in explaining the reason why I need this and how I use it. If it's needed I'll edit the question and the information.
Thanks in advance,
Ex