VirtualBox

Changeset 28658 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 23, 2010 3:26:09 PM (15 years ago)
Author:
vboxsync
Message:

VBoxShell: interruptions in gexec, getProcessOutput() doesn't work yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r28654 r28658  
    754754    print "executed with pid %d" %(pid)
    755755    if pid != 0:
    756         while not progress.completed:
    757             data = guest.getProcessOutput(pid, 0, 1, 4096)
    758             if data and len(data) > 0:
    759                 sys.stdout.write(data)
    760             progress.waitForCompletion(100)
    761             ctx['global'].waitForEvents(0)
     756        try:
     757            while not progress.completed:
     758                data = None #guest.getProcessOutput(pid, 0, 1, 4096)
     759                if data and len(data) > 0:
     760                    sys.stdout.write(data)
     761                progress.waitForCompletion(100)
     762                ctx['global'].waitForEvents(0)
     763        except KeyboardInterrupt:
     764            print "Interrupted."
     765            if progress.cancelable:
     766                progress.cancel()
     767        return 0
    762768    else:
    763769        reportError(ctx, progress)
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