src/cxx_supportlib/WatchdogLauncher.h in passenger-5.0.26 vs src/cxx_supportlib/WatchdogLauncher.h in passenger-5.0.27
- old
+ new
@@ -279,10 +279,10 @@
/**
* Behaves like `waitpid(pid, status, WNOHANG)`, but waits at most
* `timeout` miliseconds for the process to exit.
*/
static int timedWaitPid(pid_t pid, int *status, unsigned long long timeout) {
- Timer timer;
+ Timer<SystemTime::GRAN_10MSEC> timer;
int ret;
do {
ret = syscalls::waitpid(pid, status, WNOHANG);
if (ret > 0 || ret == -1) {