diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-12-25 16:23:39 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-12-25 16:23:39 (GMT) |
commit | 942f4f9593c503770121f96a2be9342e848595fb (patch) | |
tree | 916c67b09ad94a5f68420aa678af9c1c00d86309 /rhnop-server/nopsyncd.c | |
parent | 8e8a20b135ebade8473f10617f1f97b7472d7d42 (diff) |
some cleanup
added todo for mysql error handling
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; } |