Changeset 93360 in vbox
- Timestamp:
- Jan 20, 2022 11:28:10 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-drm.cpp
r93115 r93360 127 127 128 128 /** Path to the PID file. */ 129 static const char g_szPidFile[RTPATH_MAX]= "/var/run/VBoxDRMClient";129 static const char *g_pszPidFile = "/var/run/VBoxDRMClient"; 130 130 131 131 /** Global flag which is triggered when service requested to shutdown. */ … … 546 546 547 547 /* Check PID file before attempting to initialize anything. */ 548 rc = VbglR3PidFile(g_ szPidFile, &hPidFile);548 rc = VbglR3PidFile(g_pszPidFile, &hPidFile); 549 549 if (rc == VERR_FILE_LOCK_VIOLATION) 550 550 { … … 552 552 return RTEXITCODE_SUCCESS; 553 553 } 554 elseif (RT_FAILURE(rc))554 if (RT_FAILURE(rc)) 555 555 { 556 556 VBClLogError("VBoxDRMClient: unable to lock PID file (%Rrc), exiting\n", rc); … … 600 600 601 601 VBClLogInfo("VBoxDRMClient: releasing PID file lock\n"); 602 VbglR3ClosePidFile(g_ szPidFile, hPidFile);602 VbglR3ClosePidFile(g_pszPidFile, hPidFile); 603 603 604 604 return rc == 0 ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
Note:
See TracChangeset
for help on using the changeset viewer.