Skip to content

Commit

Permalink
Omit CPU pinning code on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-henry committed Nov 12, 2024
1 parent 75a5b44 commit 969c0ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osdep/BSDEthernetTap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ void BSDEthernetTap::threadMain()
// constructing itself.
Thread::sleep(500);

#ifndef __OpenBSD__
bool pinning = _pinning;

for (unsigned int i = 0; i < _concurrency; ++i) {
Expand All @@ -451,6 +452,7 @@ void BSDEthernetTap::threadMain()
exit(1);
}
}
#endif // __OpenBSD__

uint8_t b[ZT_TAP_BUF_SIZE];
MAC to, from;
Expand Down

0 comments on commit 969c0ee

Please sign in to comment.