MCPcopy Create free account
hub / github.com/USBGuard/usbguard / ~UMockdevDeviceManager

Method ~UMockdevDeviceManager

src/Library/UMockdevDeviceManager.cpp:63–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 UMockdevDeviceManager::~UMockdevDeviceManager()
64 {
65 if (getRestoreControllerDeviceState()) {
66 setAuthorizedDefault(AuthorizedDefaultType::All); // FIXME: Set to previous state
67 }
68
69 stop();
70
71 if (_uevent_fd >= 0) {
72 (void)close(_uevent_fd);
73 }
74
75 if (_wakeup_fd >= 0) {
76 (void)close(_wakeup_fd);
77 }
78 }
79
80 void UMockdevDeviceManager::start()
81 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected