Changeset 7516
- Timestamp:
- 03/22/08 09:07:21 (8 months ago)
- Files:
-
- trunk/src/VBox/Main/MachineImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/VBox/Main/MachineImpl.cpp
r7466 r7516 7135 7135 Utf8Str configFile = aMachine->mData->mConfigFileFull; 7136 7136 char *configFileCP = NULL; 7137 int error; 7137 7138 RTStrUtf8ToCurrentCP (&configFileCP, configFile); 7138 7139 key_t key = ::ftok (configFileCP, 0); 7139 7140 RTStrFree (configFileCP); 7140 7141 mIPCSem = ::semget (key, 1, S_IRWXU | S_IRWXG | S_IRWXO | IPC_CREAT); 7141 ComAssertMsgRet (mIPCSem >= 0, ("Cannot create IPC semaphore, errno=%d", errno), 7142 error = errno; 7143 if (mIPCSem < 0 && error == ENOSYS) 7144 { 7145 setError(E_FAIL, 7146 tr ("Cannot create IPC semaphore. Most likely your host kernel lacks " 7147 "support for SysV IPC. Check the host kernel configuration for " 7148 "CONFIG_SYSVIPC=y")); 7149 return E_FAIL; 7150 } 7151 ComAssertMsgRet (mIPCSem >= 0, ("Cannot create IPC semaphore, errno=%d", error), 7142 7152 E_FAIL); 7143 7153 /* set the initial value to 1 */

