VirtualBox

Changeset 38720 in vbox


Ignore:
Timestamp:
Sep 13, 2011 6:36:11 AM (13 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: create pidfiles after daemonising to make sure the right PIDs go into the files

File:
1 edited

Legend:

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

    r38636 r38720  
    259259        return 1;
    260260    }
    261     if (g_szPidFile[0] && RT_FAILURE(VbglR3PidFile(g_szPidFile, &g_hPidFile)))
    262     {
    263         RTPrintf("Failed to create a pidfile.  Exiting.\n");
    264         LogRel(("Failed to create a pidfile.  Exiting.\n"));
    265         VbglR3Term();
    266         return 1;
    267     }
    268261    if (fDaemonise)
    269262    {
     
    278271            return 1;
    279272        }
     273    }
     274    if (g_szPidFile[0] && RT_FAILURE(VbglR3PidFile(g_szPidFile, &g_hPidFile)))
     275    {
     276        RTPrintf("Failed to create a pidfile.  Exiting.\n");
     277        LogRel(("Failed to create a pidfile.  Exiting.\n"));
     278        VbglR3Term();
     279        return 1;
    280280    }
    281281    /* Set signal handlers to clean up on exit. */
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