Skip to content

Commit 01b1d63

Browse files
committed
Continue even if /proc/cpuinfo is "unusual" (as sometimes seen on LXC or virtual environments) #59
1 parent b9eb388 commit 01b1d63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

affinity/src/main/java/net/openhft/affinity/AffinityLock.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import java.io.Closeable;
2828
import java.io.File;
29-
import java.io.IOException;
3029
import java.util.BitSet;
3130

3231
/**
@@ -56,7 +55,7 @@ public class AffinityLock implements Closeable {
5655
cpuLayout = VanillaCpuLayout.fromCpuInfo();
5756
processors = cpuLayout.cpus();
5857
}
59-
} catch (IOException e) {
58+
} catch (Throwable e) {
6059
LOGGER.warn("Unable to load /proc/cpuinfo", e);
6160
}
6261
PROCESSORS = processors;

0 commit comments

Comments
 (0)