On Sun, Aug 24, 2003 at 02:24:20PM +0200, Tomasz Kojm wrote: > > I believe the proper option is to use the properties of bind() as they > > were intended to be used. bind() should only succeed if no other file > > descriptors in the system are bound to the named UNIX socket. > clamd works in this way (see localserver.c).
clamd shouldn't be checking whether the file exists. I suspect that simply removing that check will eliminate the problem. The proposed patch chooses to add a connect() attempt, rather than remove the unnecessary check. It doesn't matter if they file still exists. It only matters if the server is bound to the UNIX socket. The connect() obscures things. I can submit a patch, if it would speak louder. Cheers, mark -- [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED] __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/ ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users