Corrected an output line that Ron left in from a patch I gave him.

The script's filename cannot be acessed when a thread's target times out
because we do not have access to the thread's environment when it is yielded.
All we can do is print out which target timed out. This output can
unfortunately be printed out many times for each thread (it is currently
difficult to track).
This commit is contained in:
batrick 2008-12-24 08:40:03 +00:00
parent 1c08d02689
commit 38394e9f24

View file

@ -437,7 +437,10 @@ int process_mainloop(lua_State *L) {
current = *(running_scripts.begin());
if (current.rr.host->timedOut(&now)) {
printf("thread (%p) timed out\n", (void *) current.thread);
if (o.verbose >= 2) {
log_write(LOG_STDOUT, "%s: target %s timed out.\n", SCRIPT_ENGINE,
current.rr.host->targetipstr());
}
SCRIPT_ENGINE_TRY(process_finalize(L, current.registry_idx));
continue;
}