VirtualBox

Changeset 16244 in vbox for trunk/src


Ignore:
Timestamp:
Jan 26, 2009 6:06:59 PM (16 years ago)
Author:
vboxsync
Message:

Main: Use a non-zero proj_id in ftok() as suggested by the libc manual.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r16216 r16244  
    77567756    int error;
    77577757    RTStrUtf8ToCurrentCP (&configFileCP, configFile);
    7758     key_t key = ::ftok (configFileCP, 0);
     7758    key_t key = ::ftok (configFileCP, 'V');
    77597759    RTStrFree (configFileCP);
    77607760    mIPCSem = ::semget (key, 1, S_IRWXU | S_IRWXG | S_IRWXO | IPC_CREAT);
  • trunk/src/VBox/Main/SessionImpl.cpp

    r15834 r16244  
    959959    char *pszSemName = NULL;
    960960    RTStrUtf8ToCurrentCP (&pszSemName, semName);
    961     key_t key = ::ftok (pszSemName, 0);
     961    key_t key = ::ftok (pszSemName, 'V');
    962962    RTStrFree (pszSemName);
    963963
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