VirtualBox

Changeset 95518 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jul 5, 2022 4:02:21 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152138
Message:

VBoxService/Control Session: When creating a process for a guest session
the pipe file descriptor created for passing the secret key from the
session thread (pSessionThread->Thread = vgsvcGstCtrlSessionThread) to
its associated newly spawned process (pSessionThread->hProcess) isn't
closed when the session thread is closed down and destroyed thus leaking
the descriptor which can lead to the inability to run guest commands due
to too many open files (errno=EMFILE). ticketref:20902

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r95505 r95518  
    27002700        pThread->pStartupInfo = NULL;
    27012701
     2702        RTPipeClose(pThread->hKeyPipe);
     2703        pThread->hKeyPipe = NIL_RTPIPE;
     2704
     2705        RTCritSectDelete(&pThread->CritSect);
     2706
    27022707        /* Remove session from list and destroy object. */
    27032708        RTListNodeRemove(&pThread->Node);
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