Open marcomarsala opened 2 years ago
Well, flock()
would be a stream operatoon, so according to the documentation it would not count the time spent waiting for it to return. I'm not sure, though, whether the documentation is correct. Fact is that max_execution_time
is implemented via setitimer()
, usually using ITIMER_PROF
(except for CygWin and PASE). According to the man page:
This timer counts down against the total (i.e., both user and system) CPU time consumed by the process. (The measurement includes CPU time consumed by all threads in the process.)
(That raises the question how that works with ZTS builds.)
This part of documentation
is vague. For example, waiting for a flock() call to return does count or not in time spent?