summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--agni.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/agni.c b/agni.c
index 5ccb6ff..9e56111 100644
--- a/agni.c
+++ b/agni.c
@@ -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
+}