URI: 
       tMerge pull request #1234 from kyuupichan/storage-tmpfile - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 4aaa9e24f272a1ad2f306cdb562d6b9049e0ef4a
   DIR parent 91a7a06b385d370ca77bc655ace413b9e2569302
  HTML Author: ThomasV <electrumdev@gmail.com>
       Date:   Sat, 23 May 2015 07:22:12 +0200
       
       Merge pull request #1234 from kyuupichan/storage-tmpfile
       
       Prevent race with two electrum instances on same wallet.
       Diffstat:
         M lib/wallet.py                       |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -115,7 +115,7 @@ class WalletStorage(object):
        
            def write(self):
                assert not threading.currentThread().isDaemon()
       -        temp_path = self.path + '.tmp'
       +        temp_path = "%s.tmp.%s" % (self.path, os.getpid())
                s = json.dumps(self.data, indent=4, sort_keys=True)
                with open(temp_path, "w") as f:
                    f.write(s)