From d6ec05193b3b79ab577ca2a4173ef3ef51492db8 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 20 May 2026 19:52:55 +0200 Subject: [PATCH] Ensure different tmp-file names if os.getpid() is not available --- LXMF/LXMessage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LXMF/LXMessage.py b/LXMF/LXMessage.py index 5271d4e..639ab36 100644 --- a/LXMF/LXMessage.py +++ b/LXMF/LXMessage.py @@ -672,7 +672,7 @@ class LXMessage: def write_to_directory(self, directory_path): file_name = RNS.hexrep(self.hash, delimit=False) file_path = directory_path+"/"+file_name - tmp_path = file_path+".tmp."+str(os.getpid()) + tmp_path = file_path+".tmp."+str(os.getpid() or time.time()) try: with open(tmp_path, "wb") as file: