Subversion Repositories mdb

Rev

Rev 56 | Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 56 Rev 57
Line 277... Line 277...
277
		if (pthread_create(&pthr_cmds, NULL, processCommands, (void *)&soc) != 0)
277
		if (pthread_create(&pthr_cmds, NULL, processCommands, (void *)&soc) != 0)
278
		{
278
		{
279
			syslog (LOG_DAEMON,"Creation of thread \"pthr_cmds\" failed!");
279
			syslog (LOG_DAEMON,"Creation of thread \"pthr_cmds\" failed!");
280
			close(s1);
280
			close(s1);
281
			close(s);
281
			close(s);
-
 
282
			pthread_exit(NULL);
282
			return NULL;
283
			return NULL;
283
		}
284
		}
284
 
285
 
285
/*		if ((childpid = fork()) < 0)
286
/*		if ((childpid = fork()) < 0)
286
			syslog(LOG_DAEMON, "Can't fork a child: %s", strerror(errno));
287
			syslog(LOG_DAEMON, "Can't fork a child: %s", strerror(errno));
Line 301... Line 302...
301
#endif
302
#endif
302
		close(s1); */
303
		close(s1); */
303
	}
304
	}
304
	
305
	
305
	close (s);
306
	close (s);
-
 
307
	pthread_exit(NULL);
306
	return NULL;
308
	return NULL;
307
}
309
}