VirtualBox

Changeset 18359 in vbox for trunk/src


Ignore:
Timestamp:
Mar 26, 2009 11:22:24 PM (16 years ago)
Author:
vboxsync
Message:

Additions/common/VbglR3Lib: fixed pidfile creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDaemonize.cpp

    r18320 r18359  
    238238                        | (0644 << RTFILE_O_CREATE_MODE_SHIFT));
    239239    if (RT_SUCCESS(rc))
    240         rc = RTFileLock(hPidFile, RTFILE_LOCK_WRITE, 0, ~0);
     240        /** @todo using size 0 for locking means lock all on Posix.
     241         * We should adopt this as our convention too, or something
     242         * similar. */
     243        rc = RTFileLock(hPidFile, RTFILE_LOCK_WRITE, 0, 0);
    241244    if (RT_SUCCESS(rc))
    242245    {
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