VirtualBox

Ignore:
Timestamp:
Mar 13, 2020 3:35:35 PM (5 years ago)
Author:
vboxsync
Message:

VBoxService / Guest Control: Fixed guest process thread teardown / cleanup handling resulting in handle/thread leaks, separated functions more for cleaner structure. bugref:9135

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.h

    r82968 r83286  
    179179     *  (VBOXSERVICECTRLPROCESS). */
    180180    RTLISTANCHOR                    lstProcesses;
     181    /** Number of guest processes in the process list. */
     182    uint32_t                        cProcesses;
    181183    /** List of guest control files (VBOXSERVICECTRLFILE). */
    182184    RTLISTANCHOR                    lstFiles;
     185    /** Number of guest files in the file list. */
     186    uint32_t                        cFiles;
    183187    /** The session's critical section. */
    184188    RTCRITSECT                      CritSect;
     
    278282    RTPIPE                          hPipeStdOutR;
    279283    /** StdOut pipe for addressing reads from
    280      *  guest process' stdout.*/
     284     *  guest process' stderr.*/
    281285    RTPIPE                          hPipeStdErrR;
    282286
     
    317321extern int                      VGSvcGstCtrlSessionProcessAdd(PVBOXSERVICECTRLSESSION pSession, PVBOXSERVICECTRLPROCESS pProcess);
    318322extern int                      VGSvcGstCtrlSessionProcessRemove(PVBOXSERVICECTRLSESSION pSession, PVBOXSERVICECTRLPROCESS pProcess);
    319 extern int                      VGSvcGstCtrlSessionProcessStartAllowed(const PVBOXSERVICECTRLSESSION pSession, bool *pbAllowed);
     323extern int                      VGSvcGstCtrlSessionProcessStartAllowed(const PVBOXSERVICECTRLSESSION pSession, bool *pfAllowed);
    320324extern int                      VGSvcGstCtrlSessionReapProcesses(PVBOXSERVICECTRLSESSION pSession);
    321325/** @} */
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