From 135dde5d5909832aa22641bef52a604a88b9e45e Mon Sep 17 00:00:00 2001 From: thunder2 Date: Wed, 29 Oct 2014 09:38:22 +0000 Subject: [PATCH] Changed sleep to usleep in RsStackFileLock::RsStackFileLock (request from Cyril) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7647 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/util/rsdir.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/util/rsdir.cc b/libretroshare/src/util/rsdir.cc index e22acd0e1..0fb353f68 100644 --- a/libretroshare/src/util/rsdir.cc +++ b/libretroshare/src/util/rsdir.cc @@ -952,7 +952,7 @@ RsStackFileLock::RsStackFileLock(const std::string& file_path) while(RsDirUtil::createLockFile(file_path,_file_handle)) { std::cerr << "Cannot acquire file lock " << file_path << ", waiting 1 sec." << std::endl; - sleep(1 * 1000 * 1000) ; // 1 sec + usleep(1 * 1000 * 1000) ; // 1 sec } #ifdef RSDIR_DEBUG std::cerr << "Acquired file handle " << _file_handle << ", lock file:" << file_path << std::endl;