node = cTSD->self;
if ((node != NULL) && (node->reltid != 0))
{
- lwpid = node->pid + node->reltid;
+ lwpid = node->reltid;
}
gettimeofday(&tv, NULL);
unixtime = tv.tv_sec;
localtime_r(&unixtime, &tim);
- if (CCC != NULL)
+ if ((CCC != NULL) && (CCC != &masterCC))
lBuf = CCC->lBuf;
else
lBuf = NewStrBuf();
}
vsnprintf(buf2, SIZ, format, arg_ptr);
- fprintf(stderr, "%s%s", buf, buf2);
+ fprintf(stderr, ":%s%s", buf, buf2);
}
else {
StrBufPrintf(lBuf,
int m;
int i;
int retval;
+ struct CitContext select_on_master_CC;
+
+ CtdlFillSystemContext(&select_on_master_CC, "select_on_master");
+ citthread_setspecific(MyConKey, (void *)&select_on_master_CC);
while (!CtdlThreadCheckStop()) {
/* Initialize the fdset. */
}
}
}
+ CtdlClearSystemContext();
+
return NULL;
}