]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 739: Recvq TIF faxes not locked when receiving
authorAidan Van Dyk <aidan@ifax.com>
Thu, 23 Mar 2006 21:22:32 +0000 (21:22 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Thu, 23 Mar 2006 21:22:32 +0000 (21:22 +0000)
This results in hfaxd not knowing if the faxes are currently being received
for it's %z handling

CHANGES
faxd/FaxRecv.c++

diff --git a/CHANGES b/CHANGES
index a4ecf3d50546d05b0e2d5366cc946741fc5b6796..6248abc1fc04f7a4b09b548a0ab39b7bfd5376b3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@
 
 Changelog
 
+* Fix locking of recvq tiff files (BUG 739) (23 Mar 2006)
 * fix batching of page jobs (23 Mar 2006)
 * expand Class1JBIGSupport to allow for differentiation
   between full, none, send, and receive support (17 Mar 2006)
index 3ded7064bb4a66c6d24b0a319160b699b1f0c649..a90fd71359e9ded0342ea4ab9e1ce78597f50121 100644 (file)
@@ -135,6 +135,8 @@ FaxServer::getRecvFile(fxStr& qfile, fxStr& emsg)
     if (ftmp < 0)
         emsg = "Failed to find unused filename";
 
+    (void) flock(ftmp, LOCK_EX);
+
     return ftmp;
 }