summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 19:22:41 +0200
committerGravatar Nikias Bassen2012-07-17 19:22:41 +0200
commit58a4fd91026cc00182fc0aea2ab45c19f729b8d0 (patch)
treec9bcd3d7f3f2dee2c613b0d2429faecf39fb320c /src
parent6eaa958116963e509722363ca5c278940e896c7f (diff)
downloadidevicerestore-58a4fd91026cc00182fc0aea2ab45c19f729b8d0.tar.gz
idevicerestore-58a4fd91026cc00182fc0aea2ab45c19f729b8d0.tar.bz2
main: remove file locking as it appears to hang on some platforms
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index f0784d4..ab9ddf6 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -96,11 +96,6 @@ static int load_version_data(struct idevicerestore_client_t* client)
struct stat fst;
int cached = 0;
- lock_info_t lockinfo;
- if (lock_file(VERSION_XML ".lock", &lockinfo) != 0) {
- error("WARNING: could not lock file\n");
- }
-
if ((stat(VERSION_XML, &fst) < 0) || ((time(NULL)-86400) > fst.st_mtime)) {
__mkdir("cache", 0755);
@@ -120,10 +115,6 @@ static int load_version_data(struct idevicerestore_client_t* client)
size_t verlen = 0;
read_file(VERSION_XML, (void**)&verbuf, &verlen);
- if (unlock_file(&lockinfo) != 0) {
- error("WARNING: could not unlock file\n");
- }
-
if (!verbuf) {
error("ERROR: Could not load '" VERSION_XML "'.\n");
return -1;