Re: Problems with socket created before fork() in multi-threaded application

2008-03-21 Thread Török Edwin
Philip Guenther wrote: On Thu, Mar 20, 2008 at 3:01 PM, Tvrvk Edwin [EMAIL PROTECTED] wrote: ClamAV has changed to call fork() after creating its local socket. This causes weird behaviours when communicating on the socket [1] If fork() is called before creating the socket() it works.

Problems with socket created before fork() in multi-threaded application

2008-03-20 Thread Török Edwin
Hi, ClamAV has changed to call fork() after creating its local socket. This causes weird behaviours when communicating on the socket [1] If fork() is called before creating the socket() it works. Is it safe to create a socket, fork(), and then call pthread_create() and read from the socket? It