diff options
Diffstat (limited to 'agni.c')
-rw-r--r-- | agni.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1027,6 +1027,10 @@ int main(int argc, char **argv) { LOG_NONE_E("Cant allocate new server process\n"); } + //gethostbyname is shittu function and dont work on MT environment, + //so give that mother fucker time to not collide with all other threads + //wrap that shit in some thread(normal threads not POSIX crap) safe way + sleep(1); } /* event handler thread */ @@ -1075,4 +1079,4 @@ int main(int argc, char **argv) LOG_NONE_E("Exit\n"); return 0; -}
\ No newline at end of file +} |