Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4863 by yutakapon, Sun Mar 11 12:01:10 2012 UTC revision 4962 by yutakapon, Fri Jun 8 13:20:26 2012 UTC
# Line 675  void NamedPipeThread(void *arg) Line 675  void NamedPipeThread(void *arg)
675                          WaitForSingleObject(REnd,INFINITE);                          WaitForSingleObject(REnd,INFINITE);
676                  }                  }
677                  else {                  else {
678                          DErr = GetLastError();  // this returns 109 (broken pipe) if a named pipe is removed.                          DErr = GetLastError();  
679                          if (! cv->Ready || ERROR_BROKEN_PIPE == DErr) {                          // [VMware] this returns 109 (broken pipe) if a named pipe is removed.
680                            // [Virtual Box] this returns 233 (pipe not connected) if a named pipe is removed.
681                            if (! cv->Ready || ERROR_BROKEN_PIPE == DErr || ERROR_PIPE_NOT_CONNECTED == DErr) {
682                                  PostMessage(cv->HWin, WM_USER_COMMNOTIFY, 0, FD_CLOSE);                                  PostMessage(cv->HWin, WM_USER_COMMNOTIFY, 0, FD_CLOSE);
683                                  _endthread();                                  _endthread();
684                          }                          }

Legend:
Removed from v.4863  
changed lines
  Added in v.4962

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26