diff options
Diffstat (limited to 'rhnop-server/nopsyncd.c')
-rw-r--r-- | rhnop-server/nopsyncd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rhnop-server/nopsyncd.c b/rhnop-server/nopsyncd.c index 376ff8f..35558c2 100644 --- a/rhnop-server/nopsyncd.c +++ b/rhnop-server/nopsyncd.c @@ -42,9 +42,9 @@ static const luaL_Reg nopsyncd_lualibs[] = { {LUA_TABLIBNAME, luaopen_table}, {LUA_STRLIBNAME, luaopen_string}, {LUA_MATHLIBNAME, luaopen_math}, - {LUA_MATHLIBNAME, luaopen_io}, - {LUA_MATHLIBNAME, luaopen_os}, - {LUA_MATHLIBNAME, luaopen_pipe}, + {LUA_IOLIBNAME, luaopen_io}, + {LUA_OSLIBNAME, luaopen_os}, + {LUA_PIPELIBNAME, luaopen_pipe}, {NULL, NULL} }; @@ -129,8 +129,8 @@ void* main_loop(void* file) printf("%s returned with %d\n", (char*)file, ret); lua_close(L); - - /* this should bring down the other thread as well + + /* this should bring down the other thread as well at least this is true for the tcp-server thread */ pipe_close(); @@ -140,7 +140,7 @@ void* main_loop(void* file) int main(int argc, char* argv[]) { printf("starting nopsyncd...\n"); - + pthread_t qlistener, tcpserver; int ret = pipe_init(); @@ -158,7 +158,7 @@ int main(int argc, char* argv[]) ret = pthread_create(&tcpserver, NULL, main_loop, TCPSERVER); if(ret) { - fprintf(stderr, "Error creating qlistener thread (code: %d)\n", ret); + fprintf(stderr, "Error creating tcpserver thread (code: %d)\n", ret); return 1; } |