diff options
| author | ame <[email protected]> | 2024-05-07 14:09:48 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-05-07 14:09:48 -0500 |
| commit | 3200f04de946049e950c6f7fd1e9d4d2f599c9ea (patch) | |
| tree | 68a9e2f5e2f496fc630d036fd27f2aae9fb2ad23 /src/net.c | |
| parent | a571dd1ac9fc4d46e0bbc95a3ab88f52ee37b1a1 (diff) | |
more work on threads
Diffstat (limited to 'src/net.c')
| -rw-r--r-- | src/net.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -759,7 +759,8 @@ void* handle_client(void *_arg){ //time_end("copy", copy)
lua_settop(args->L, old_top);
//l_pprint(L);
- lua_setglobal(L, "_G");
+ //lua_setglobal(L, "_G");
+ lua_set_global_table(L);
pthread_mutex_unlock(&mutex);
//printf("start: %f\n",(double)(clock() - begin) / CLOCKS_PER_SEC);
//read full request
|
