Page MenuHomeFreeBSD

D13309.1795876166.diff
No OneTemporary

Authored By
Unknown
Size
847 B
Referenced Files
None
Subscribers
None

D13309.1795876166.diff

Index: numactl.1.lm
===================================================================
--- numactl.1.lm
+++ numactl.1.lm
@@ -107,6 +107,15 @@
.El
.Sh EXIT STATUS
.Ex -std
+.Sh ENVIRONMENT
+.Nm
+sets the environment variable
+.Va NUMACTL=YES
+before running
+.Ar cmd ...
+so programs that know they need to be run under
+.Nm
+can check.
.Sh EXAMPLES
Create a
.Pa /bin/sh
Index: numactl.c.lm
===================================================================
--- numactl.c.lm
+++ numactl.c.lm
@@ -231,6 +231,7 @@
(void) set_numa_domain_cpuaffinity(cpu_domain,
CPU_WHICH_PID, -1);
+ putenv("NUMACTL=YES");
errno = 0;
execvp(*argv, argv);
err(errno == ENOENT ? 127 : 126, "%s", *argv);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 28, 2:29 PM (4 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42060045
Default Alt Text
D13309.1795876166.diff (847 B)

Event Timeline