forked from pool/numactl
21 lines
332 B
Plaintext
21 lines
332 B
Plaintext
--- numactl/libnuma.c~ 2006-06-08 11:50:19.000000000 +0200
|
|
+++ numactl/libnuma.c 2006-06-08 16:57:12.000000000 +0200
|
|
@@ -122,7 +122,8 @@
|
|
{
|
|
int len = 16;
|
|
int n;
|
|
-
|
|
+ int olde = errno;
|
|
+
|
|
if (maxcpus >= 0)
|
|
return maxcpus + 1;
|
|
|
|
@@ -137,6 +138,7 @@
|
|
continue;
|
|
}
|
|
} while (n < 0);
|
|
+ errno = olde;
|
|
return len;
|
|
}
|
|
|