VirtualBox

Changeset 13584 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Oct 27, 2008 3:45:12 PM (16 years ago)
Author:
vboxsync
Message:

HostServices/x11: Increased timeout to 2 minutes for trusted Xorg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/x11.cpp

    r13524 r13584  
    5151#include <X11/Xproto.h>
    5252#include <X11/StringDefs.h>
     53
     54#ifdef RT_OS_SOLARIS
     55#include <tsol/label.h>
     56#endif
    5357
    5458/** Do we want to test Utf16 by disabling other text formats? */
     
    14231427        /* When the data arrives, the vboxClipboardGetProc callback will be called.  The
    14241428           callback will signal the event semaphore when it has processed the data for us. */
     1429
     1430#ifdef RT_OS_SOLARIS
     1431        /*
     1432         * Trusted Xorg requires a bigger timeout.
     1433         */
     1434        unsigned long cTimeoutMillies = CLIPBOARDTIMEOUT;
     1435        if (is_system_labeled())
     1436            cTimeoutMillies = 1000 * 120;
     1437
     1438        if (RTSemEventWait(g_ctx.waitForData, cTimeoutMillies) != VINF_SUCCESS)
     1439#else
    14251440        if (RTSemEventWait(g_ctx.waitForData, CLIPBOARDTIMEOUT) != VINF_SUCCESS)
     1441#endif
    14261442        {
    14271443            /* No need to polute the release log for this. */
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