mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
Merge pull request #243 from facebook/fix_100p
[events] Fix SCNetwork runloop thrashing
This commit is contained in:
commit
2346fa00d5
@ -140,6 +140,9 @@ Status SCNetworkEventPublisher::run() {
|
||||
|
||||
// Start the run loop, it may be removed with a tearDown.
|
||||
CFRunLoopRun();
|
||||
|
||||
// Do not expect the run loop to exit often, if so, add artificial latency.
|
||||
::sleep(1);
|
||||
return Status(0, "OK");
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user