[Ttssh2-commit] [5189] LogLockExclusive= on のときの排他制御を FILE_SHARE_READ に変更

svnno****@sourc***** svnno****@sourc*****
2013年 4月 4日 (木) 13:01:46 JST


Revision: 5189
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5189
Author:   maya
Date:     2013-04-04 13:01:46 +0900 (Thu, 04 Apr 2013)
Log Message:
-----------
LogLockExclusive=on のときの排他制御を FILE_SHARE_READ に変更
  http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=31051

Modified Paths:
--------------
    trunk/teraterm/teraterm/filesys.cpp

-------------- next part --------------
Modified: trunk/teraterm/teraterm/filesys.cpp
===================================================================
--- trunk/teraterm/teraterm/filesys.cpp	2013-04-03 17:18:15 UTC (rev 5188)
+++ trunk/teraterm/teraterm/filesys.cpp	2013-04-04 04:01:46 UTC (rev 5189)
@@ -493,7 +493,7 @@
 
 	if (ts.Append > 0)
 	{
-		int dwShareMode = 0;
+		int dwShareMode = FILE_SHARE_READ;
 		if (!ts.LogLockExclusive) {
 			dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE;
 		}
@@ -509,7 +509,7 @@
 		}
 	}
 	else {
-		int dwShareMode = 0;
+		int dwShareMode = FILE_SHARE_READ;
 		if (!ts.LogLockExclusive) {
 			dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE;
 		}
@@ -662,7 +662,7 @@
 	char filename[1024];
 	char newfile[1024], oldfile[1024];
 	int i, k;
-	int dwShareMode = 0;
+	int dwShareMode = FILE_SHARE_READ;
 
 	if (! LogVar->FileOpen) return;
 



Ttssh2-commit メーリングリストの案内