Changeset 98288 in vbox for trunk/src/VBox/Main/src-server/linux/HostPowerLinux.cpp
- Timestamp:
- Jan 24, 2023 3:32:43 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/linux/HostPowerLinux.cpp
r98103 r98288 59 59 { 60 60 DBusError error; 61 int rc;62 61 63 rc = RTDBusLoadLib();64 if (RT_FAILURE( rc))62 int vrc = RTDBusLoadLib(); 63 if (RT_FAILURE(vrc)) 65 64 { 66 65 LogRel(("HostPowerServiceLinux: DBus library not found. Service not available.\n")); … … 92 91 93 92 /* Create the new worker thread. */ 94 rc = RTThreadCreate(&mThread, HostPowerServiceLinux::powerChangeNotificationThread, this, 0 /* cbStack */,95 RTTHREADTYPE_MSG_PUMP, RTTHREADFLAGS_WAITABLE, "MainPower");96 if (RT_FAILURE( rc))93 vrc = RTThreadCreate(&mThread, HostPowerServiceLinux::powerChangeNotificationThread, this, 0 /* cbStack */, 94 RTTHREADTYPE_MSG_PUMP, RTTHREADFLAGS_WAITABLE, "MainPower"); 95 if (RT_FAILURE(vrc)) 97 96 { 98 LogRel(("HostPowerServiceLinux: RTThreadCreate failed with %Rrc\n", rc));97 LogRel(("HostPowerServiceLinux: RTThreadCreate failed with %Rrc\n", vrc)); 99 98 dbus_connection_unref(mpConnection); 100 99 }
Note:
See TracChangeset
for help on using the changeset viewer.