const char *var = "LTTNG_THREAD_MANAGE_CLIENTS_STALL";
if (check_env_var(var)) {
- sleep(STALL_TIME);
+ unsigned int sleep_time = STALL_TIME;
+ while (sleep_time > 0) {
+ sleep_time = sleep(sleep_time);
+ }
}
}
const char *var = "LTTNG_THREAD_MANAGE_KERNEL_STALL";
if (check_env_var(var)) {
- sleep(STALL_TIME);
+ unsigned int sleep_time = STALL_TIME;
+ while (sleep_time > 0) {
+ sleep_time = sleep(sleep_time);
+ }
}
}
const char *var = "LTTNG_THREAD_MANAGE_APPS_STALL";
if (check_env_var(var)) {
- sleep(STALL_TIME);
+ unsigned int sleep_time = STALL_TIME;
+ while (sleep_time > 0) {
+ sleep_time = sleep(sleep_time);
+ }
}
}