예제 #1
0
 // Token: 0x06000085 RID: 133 RVA: 0x0000999C File Offset: 0x00007B9C
 private static void RedirectStandardError(object stupid)
 {
     try
     {
         int firstCharRead;
         while (CMD._prc != null && !CMD._prc.HasExited && CMD.CSharpImpl.__Assign <int>(ref firstCharRead, CMD._prc.StandardError.Read()) > -1)
         {
             CMD.ReadStream(firstCharRead, CMD._prc.StandardError, true);
         }
         object readLock = CMD._readLock;
         ObjectFlowControl.CheckForSyncLockOnValueType(readLock);
         lock (readLock)
         {
             if (CMD._read)
             {
                 CMD._read = false;
                 throw new ApplicationException("session unexpectedly closed");
             }
         }
     }
     catch (ObjectDisposedException ex)
     {
     }
     catch (Exception ex2)
     {
         if (!(ex2 is ApplicationException))
         {
             InvalidOperationException ex3 = ex2 as InvalidOperationException;
         }
     }
 }