VirtualBox

Changeset 28634 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 23, 2010 9:38:12 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60486
Message:

Guest Control: Update (more bugfixes, enhancements for VBoxManage).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r28627 r28634  
    503503}
    504504
    505 /* Notifier function for control execution stuff. */
     505/* Function for handling the execution start/termination notification. */
    506506int Guest::notifyCtrlExec(uint32_t              u32Function,
    507507                          PHOSTEXECCALLBACKDATA pData)
     
    523523        pCBData->u32Status = pData->u32Status;
    524524        pCBData->u32Flags = pData->u32Flags;
    525         /* @todo Copy void* buffer contents! */
     525        /** @todo Copy void* buffer contents! */
    526526
    527527        /* Do progress handling. */
     
    577577}
    578578
    579 /* Notifier function for control execution stuff. */
     579/* Function for handling the execution output notification. */
    580580int Guest::notifyCtrlExecOut(uint32_t                 u32Function,
    581581                             PHOSTEXECOUTCALLBACKDATA pData)
     
    872872                            break;
    873873
     874                        /* In any other case the process either already
     875                         * terminated or something else went wrong, so no PID ... */
     876                        case PROC_STS_TEN: /* Terminated normally. */
     877                        case PROC_STS_TEA: /* Terminated abnormally. */
     878                        case PROC_STS_TES: /* Terminated through signal. */
     879                        case PROC_STS_TOK:
     880                        case PROC_STS_TOA:
     881                        case PROC_STS_DWN:
     882                            *aPID = 0;
     883                            break;
     884
    874885                        case PROC_STS_ERROR:
    875886                            vrc = pData->u32Flags; /* u32Flags member contains IPRT error code. */
     
    877888
    878889                        default:
    879                             vrc = VERR_INVALID_PARAMETER;
     890                            vrc = VERR_INVALID_PARAMETER; /* Unknown status, should never happen! */
    880891                            break;
    881892                    }
     
    911922                        rc = setError(VBOX_E_IPRT_ERROR,
    912923                                      tr("The guest did not respond within time (%ums)"), aTimeoutMS);
     924                    }
     925                    else if (vrc == VERR_INVALID_PARAMETER)
     926                    {
     927                        rc = setError(VBOX_E_IPRT_ERROR,
     928                                      tr("The guest reported an unknown process status (%u)"), pData->u32Status);
    913929                    }
    914930                    else
     
    939955                {
    940956                    rc = setError(E_UNEXPECTED,
    941                                   tr("The service call failed with error %Rrc"), vrc);
     957                                  tr("The HGCM call failed with error %Rrc"), vrc);
    942958                }
    943959            }
Note: See TracChangeset for help on using the changeset viewer.

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