[Ttssh2-commit] [4962] 名前付きパイプ : Oracle Virtual Boxの終了時、パイプの切断ができていなかった問題を修正した。

svnno****@sourc***** svnno****@sourc*****
2012年 6月 8日 (金) 22:20:26 JST


Revision: 4962
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/4962
Author:   yutakapon
Date:     2012-06-08 22:20:26 +0900 (Fri, 08 Jun 2012)
Log Message:
-----------
名前付きパイプ: Oracle Virtual Boxの終了時、パイプの切断ができていなかった問題を修正した。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html
    trunk/teraterm/teraterm/commlib.c

-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2012-06-02 02:29:04 UTC (rev 4961)
+++ trunk/doc/en/html/about/history.html	2012-06-08 13:20:26 UTC (rev 4962)
@@ -42,7 +42,7 @@
 
   <li>Bug fixes
     <ul>
-      <li></li>
+      <li>Named pipe: The pipe can not be disconnected when the Oracle Virtual Box is terminated.</li>
     </ul>
   </li>
 

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2012-06-02 02:29:04 UTC (rev 4961)
+++ trunk/doc/ja/html/about/history.html	2012-06-08 13:20:26 UTC (rev 4962)
@@ -41,7 +41,7 @@
 
   <li>\x83o\x83O\x8FC\x90\xB3
     <ul>
-      <li></li>
+      <li>\x96\xBC\x91O\x95t\x82\xAB\x83p\x83C\x83v: Oracle Virtual Box\x82̏I\x97\xB9\x8E\x9E\x81A\x83p\x83C\x83v\x82̐ؒf\x82\xAA\x82ł\xAB\x82Ă\xA2\x82Ȃ\xA9\x82\xC1\x82\xBD\x96\xE2\x91\xE8\x82\xF0\x8FC\x90\xB3\x82\xB5\x82\xBD\x81B</li>
     </ul>
   </li>
 

Modified: trunk/teraterm/teraterm/commlib.c
===================================================================
--- trunk/teraterm/teraterm/commlib.c	2012-06-02 02:29:04 UTC (rev 4961)
+++ trunk/teraterm/teraterm/commlib.c	2012-06-08 13:20:26 UTC (rev 4962)
@@ -675,8 +675,10 @@
 			WaitForSingleObject(REnd,INFINITE);
 		}
 		else {
-			DErr = GetLastError();  // this returns 109 (broken pipe) if a named pipe is removed.
-			if (! cv->Ready || ERROR_BROKEN_PIPE == DErr) {
+			DErr = GetLastError();  
+			// [VMware] this returns 109 (broken pipe) if a named pipe is removed.
+			// [Virtual Box] this returns 233 (pipe not connected) if a named pipe is removed.
+			if (! cv->Ready || ERROR_BROKEN_PIPE == DErr || ERROR_PIPE_NOT_CONNECTED == DErr) {
 				PostMessage(cv->HWin, WM_USER_COMMNOTIFY, 0, FD_CLOSE);
 				_endthread();
 			}



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