VirtualBox

Changeset 37010 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 9, 2011 9:28:05 AM (14 years ago)
Author:
vboxsync
Message:

Main/src-server/xpcom: fix simultaneous autostarting of VBoxSVC, previously it considered not being the one who launched the "winning" VBoxSVC a failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/xpcom/server_module.cpp

    r35368 r37010  
    55
    66/*
    7  * Copyright (C) 2006-2007 Oracle Corporation
     7 * Copyright (C) 2006-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    140140    if (   PR_Read(readable, msg, sizeof(msg)-1) != 5
    141141        || strcmp(msg, "READY"))
    142         goto end;
     142    {
     143        /* If several clients start VBoxSVC simultaneously only one can
     144         * succeed. So treat this as success as well. */
     145        rv = NS_OK;
     146        goto end;
     147    }
    143148
    144149    rv = NS_OK;
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