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 | 43f85a15884a344238e25c118768d36976ae783a (patch) | |
| tree | 68a9e2f5e2f496fc630d036fd27f2aae9fb2ad23 /src/net.c | |
| parent | 618263f6f85d08bfd85d4f0376663aa1e2f58eac (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
|
