a huge list of threading fixes, we are near to ROCK SOLID threading mode

This commit is contained in:
roberto@sirius
2011-01-13 11:42:59 +01:00
parent f9158b39d8
commit c94206f7ba
14 changed files with 147 additions and 85 deletions
+1 -8
View File
@@ -42,20 +42,13 @@ static void ulua_check_args(lua_State *L, const char *func, int n) {
static int uwsgi_api_log(lua_State *L) {
time_t tt;
const char *logline ;
lca(L, 1);
if (lua_isstring(L, 1)) {
logline = lua_tolstring(L, 1, NULL);
tt = time(NULL);
if (logline[strlen(logline)] != '\n') {
uwsgi_log( UWSGI_LOGBASE " %.*s] %s\n", 24, ctime(&tt), logline);
}
else {
uwsgi_log( UWSGI_LOGBASE " %.*s] %s", 24, ctime(&tt), logline);
}
uwsgi_log( "%s\n", logline);
}
return 0;