VirtualBox

Changeset 29786 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 25, 2010 1:59:53 PM (15 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxManage: Better exit handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r29785 r29786  
    449449                }
    450450
    451                 if (fCanceled && fVerbose)
    452                     RTPrintf("Process execution canceled!\n");
    453 
    454                 if (fCompleted)
     451                if (fCanceled)
     452                {
     453                    if (fVerbose)
     454                        RTPrintf("Process execution canceled!\n");
     455                }
     456                else if (fCompleted)
    455457                {
    456458                    LONG iRc = false;
     
    471473                        RTPrintf("Exit code=%u (Status=%u [%s], Flags=%u)\n", uRetExitCode, uRetStatus, getStatus(uRetStatus), uRetFlags);
    472474                    }
     475                }
     476                else /* If neither canceled nor completed we got a hard abort (shouldn't happen). */
     477                {
     478                    if (fVerbose)
     479                        RTPrintf("Process execution aborted!\n");
    473480                }
    474481            }
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