VirtualBox

Ignore:
Timestamp:
Apr 30, 2010 10:21:00 AM (15 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxManage,Main: Immediate process output, now also cancelable with signal handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp

    r28833 r28926  
    176176                                        pData->uPID, uHandleId, 0 /* u32Flags */,
    177177                                        abBuf, cbRead);
     178        if (RT_FAILURE(rc))
     179        {
     180            VBoxServiceError("Control: Error while sending real-time output data, rc=%Rrc, cbRead=%u, CID=%u, PID=%u\n",
     181                             rc, cbRead, pThread->uClientID, pData->uPID);
     182        }
     183        else
     184        {
    178185#endif
    179         rc = VBoxServiceControlExecWritePipeBuffer(&pData->stdOut, abBuf, cbRead);
    180         if (RT_SUCCESS(rc))
    181         {
    182             /* Make sure we go another poll round in case there was too much data
    183                for the buffer to hold. */
    184             fPollEvt &= RTPOLL_EVT_ERROR;
    185         }
     186            rc = VBoxServiceControlExecWritePipeBuffer(&pData->stdOut, abBuf, cbRead);
     187            if (RT_SUCCESS(rc))
     188            {
     189                /* Make sure we go another poll round in case there was too much data
     190                   for the buffer to hold. */
     191                fPollEvt &= RTPOLL_EVT_ERROR;
     192            }
     193#if 0
     194        }
     195#endif
    186196    }
    187197    else if (RT_FAILURE(rc2))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette