VirtualBox

Ignore:
Timestamp:
Dec 10, 2021 1:25:55 PM (3 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxManage: Fixed signal handling regression within the watch sub command, caused by r138248.

File:
1 edited

Legend:

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

    r92859 r92861  
    375375        case CTRL_C_EVENT:
    376376            ASMAtomicWriteBool(&g_fGuestCtrlCanceled, true);
     377            RTSemEventSignal(g_SemEventGuestCtrlCanceled);
    377378            fEventHandled = TRUE;
    378379            break;
     
    394395static void gctlSignalHandler(int iSignal) RT_NOTHROW_DEF
    395396{
    396     NOREF(iSignal);
     397    RT_NOREF(iSignal);
    397398    ASMAtomicWriteBool(&g_fGuestCtrlCanceled, true);
     399    RTSemEventSignal(g_SemEventGuestCtrlCanceled);
    398400}
    399401#endif
     
    36793681
    36803682    /** @todo Specify categories to watch for. */
    3681     /** @todo Specify a --timeout for waiting only for a certain amount of time? */
    36823683
    36833684    RTEXITCODE rcExit = gctlCtxPostOptionParsingInit(pCtx);
     
    37943795        { "closesession",       gctlHandleCloseSession,     HELP_SCOPE_GSTCTRL_CLOSESESSION, GCTLCMDCTX_F_SESSION_ANONYMOUS | GCTLCMDCTX_F_NO_SIGNAL_HANDLER },
    37953796        { "list",               gctlHandleList,             HELP_SCOPE_GSTCTRL_LIST,         GCTLCMDCTX_F_SESSION_ANONYMOUS | GCTLCMDCTX_F_NO_SIGNAL_HANDLER },
    3796         { "watch",              gctlHandleWatch,            HELP_SCOPE_GSTCTRL_WATCH,        GCTLCMDCTX_F_SESSION_ANONYMOUS | GCTLCMDCTX_F_NO_SIGNAL_HANDLER },
     3797        { "watch",              gctlHandleWatch,            HELP_SCOPE_GSTCTRL_WATCH,        GCTLCMDCTX_F_SESSION_ANONYMOUS },
    37973798
    37983799        {"updateguestadditions",gctlHandleUpdateAdditions,  HELP_SCOPE_GSTCTRL_UPDATEGA,     GCTLCMDCTX_F_SESSION_ANONYMOUS },
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