Changeset 67320 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jun 9, 2017 1:18:12 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116032
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga.cpp
r67263 r67320 321 321 } 322 322 323 static const char *getPidFilePath()324 {325 return ".vboxclient-display-svga.pid";326 }327 328 323 static int run(struct VBCLSERVICE **ppInterface, bool fDaemonised) 329 324 { … … 356 351 if (RT_FAILURE(rc)) 357 352 VBClFatalError(("Failed to request display change events, rc=%Rrc\n", rc)); 358 rc = VbglR3SetGuestCaps(VMMDEV_GUEST_SUPPORTS_GRAPHICS, 0); 353 rc = VbglR3AcquireGuestCaps(VMMDEV_GUEST_SUPPORTS_GRAPHICS, 0, false); 354 if (rc == VERR_RESOURCE_BUSY) /* Someone else has already acquired it. */ 355 return VINF_SUCCESS; 359 356 if (RT_FAILURE(rc)) 360 357 VBClFatalError(("Failed to register resizing support, rc=%Rrc\n", rc)); … … 411 408 struct VBCLSERVICE interface = 412 409 { 413 getPidFilePath,410 NULL, /* No pidfile needed, as we use acquire capability for exclusion. */ 414 411 VBClServiceDefaultHandler, /* Init */ 415 412 run, 416 VBClServiceDefaultCleanup 413 VBClServiceDefaultCleanup, 414 true /* fDaemonise */ 417 415 }, *pInterface = &interface; 418 416
Note:
See TracChangeset
for help on using the changeset viewer.