Damjan Jovanovic damjan.jov@gmail.com writes:
+static void SM_Init(void) +{
- CreateThread(NULL, 0, manage_session, NULL, 0, NULL);
+} +#endif /* defined(SONAME_LIBSM) */
You don't want to create a new thread in every process for this. It will cause lots of trouble.