VirtualBox

Changeset 46308 in vbox for trunk/src


Ignore:
Timestamp:
May 29, 2013 11:41:54 AM (12 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: taking a write lock in the USB filter management is unnecessarily restrictive (means that one can only change them while the VM is powered off), taking a shared lock is the correct way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp

    r33294 r46308  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    408408    {
    409409        /* open a session for the VM */
    410         CHECK_ERROR_RET(cmd.mMachine, LockMachine(a->session, LockType_Write), 1);
     410        CHECK_ERROR_RET(cmd.mMachine, LockMachine(a->session, LockType_Shared), 1);
    411411        /* get the mutable session machine */
    412412        a->session->COMGETTER(Machine)(cmd.mMachine.asOutParam());
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