Commit 3f975a4c authored by jan.koester's avatar jan.koester
Browse files

test it

parent b262e7a6
Loading
Loading
Loading
Loading
Loading
+0 −3
Changes for src/backends/file.cpp: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@

#include <cstring>
#include <exception>
#include <mutex>

#ifndef Windows
#include <sys/types.h>
@@ -105,7 +104,6 @@ void authdb::File::write(const unsigned char* dest, size_t destsize){
}

void authdb::File::lock(){
   std::lock_guard<std::mutex> lock( _fileMutex);
#ifndef Windows
    for(;;){
        mode_t m = umask( 0 );
@@ -134,7 +132,6 @@ void authdb::File::lock(){
}

void authdb::File::unlock(){
    std::lock_guard<std::mutex> lock( _fileMutex);
#ifndef Windows
    flock(_LockDes,LOCK_UN);
    close(_LockDes);
+0 −1
Changes for src/backends/file.h: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ namespace authdb {
        void newRevesion();
    private:
        std::string  _lockFile;
        std::mutex _fileMutex;
        int              _LockDes;
        int              _FileDes;
    };