-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
#ifndef C_WINDOWS memset(&fl, 0, sizeof(fl)); fl.l_type = (writelock ? F_WRLCK : F_RDLCK); if(fcntl(lock->lock_fd, ((wait) ? F_SETLKW : F_SETLK), &fl) == -1) { #ifndef C_WINDOWS close(lock->lock_fd); lock->lock_fd = -1; if(errno != EACCES && errno != EAGAIN) { if(!existing) unlink(lock->lock_file); cli_errmsg("Can't acquire %s lock: %s\n", writelock ? "write" : "read", strerror(errno)); return CL_EIO; } #endif return CL_ELOCKDB; } #else if(LastError == ERROR_ALREADY_EXISTS) { if(WAIT_TIMEOUT == WaitForSingleObject(lock->lock_fd, ((wait) ? INFINITE : 0))) { lock->lock_type = -1; return CL_ELOCKDB; } } #endif #ifndef C_WINDOWS ... #ifndef C_WINDOWS ? - -- Gianluigi Tiesi <[EMAIL PROTECTED]> EDP Project Leader Netfarm S.r.l. - http://www.netfarm.it/ Free Software: http://oss.netfarm.it/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF84B/3UE5cRfnO04RAukDAKCRc0VI9FmabEx3yIgU7aUkI/d8SwCfYSqI fj+aZgOytIWkBMZO//+30OY= =zqfx -----END PGP SIGNATURE----- _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net