VirtualBox

Changeset 52647 in vbox


Ignore:
Timestamp:
Sep 8, 2014 2:17:47 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: exit silently if we are already running.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/main.cpp

    r52586 r52647  
    378378    if (g_szPidFile[0])
    379379        rc = VbglR3PidFile(g_szPidFile, &g_hPidFile);
     380    if (rc == VERR_FILE_LOCK_VIOLATION)  /* Already running. */
     381        return 0;
    380382    if (RT_FAILURE(rc))
    381383        VBClFatalError(("Creating pid-file: %Rrc\n", rc));
    382384    /* Set signal handlers to clean up on exit. */
    383385    vboxClientSetSignalHandlers();
     386#ifndef VBOXCLIENT_WITHOUT_X11
    384387    /* Set an X11 error handler, so that we don't die when we get unavoidable
    385388     * errors. */
     
    388391     * fatal errors. */
    389392    XSetIOErrorHandler(vboxClientXLibIOErrorHandler);
     393#endif
    390394    rc = (*g_pService)->init(g_pService);
    391395    if (RT_FAILURE(rc))
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