Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext/Thgstatus: special trace output on pipe busy error

We do have this problem. Needs to be solved.

Changeset d6f832a9a051

Parent 0b7819907dc9

by Adrian Buehlmann

Changes to one file · Browse files at d6f832a9a051 Showing diff from parent 0b7819907dc9 Diff from another changeset...

 
32
33
34
35
36
37
 
 
38
39
40
 
 
 
 
 
 
41
42
43
44
 
45
46
47
 
32
33
34
 
 
 
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 
49
50
51
52
@@ -32,16 +32,21 @@
  NMPWAIT_NOWAIT   );   - if (fSuccess || - ::GetLastError() == ERROR_MORE_DATA - || ::GetLastError() == ERROR_PIPE_NOT_CONNECTED) + DWORD err = GetLastError(); + if (fSuccess || err == ERROR_MORE_DATA || err == ERROR_PIPE_NOT_CONNECTED)   {   return 0;   } + else if (err == ERROR_PIPE_BUSY) + { + TDEBUG_TRACE("Thgstatus::update: CallNamedPipeA failed. " + "ERROR_PIPE_BUSY"); + return -1; + }   else   {   TDEBUG_TRACE("Thgstatus::update: CallNamedPipeA failed (" - << ::GetLastError() << ")"); + << err << ")");   return -1;   }  }