summaryrefslogtreecommitdiff
path: root/sysutils/mcelog/files/patch-memdb.c
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2011-10-15 02:53:31 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2011-10-15 02:53:31 +0000
commit6e9151ca055629e8cb7a9bb13be28967ebcf2c61 (patch)
tree63c7b2a3e84449a8af4085b00a4c91e88ef541ac /sysutils/mcelog/files/patch-memdb.c
parentNew port: security/sssd (diff)
New port: sysutils/mcelog
mcelog processes machine checks (in particular memory and CPU hardware errors) on modern x86-based unix systems and produces human-readable output. FreeBSD conversion patches were originally written by John Baldwin <jhb@freebsd.org> and later incorporated into this port. WWW: http://mcelog.org/ PR: ports/161395 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
Diffstat (limited to 'sysutils/mcelog/files/patch-memdb.c')
-rw-r--r--sysutils/mcelog/files/patch-memdb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/mcelog/files/patch-memdb.c b/sysutils/mcelog/files/patch-memdb.c
new file mode 100644
index 000000000000..32024fb9e1b0
--- /dev/null
+++ b/sysutils/mcelog/files/patch-memdb.c
@@ -0,0 +1,12 @@
+--- ./memdb.c.orig 2009-12-15 07:18:40.000000000 -0500
++++ ./memdb.c 2011-10-14 22:36:47.000000000 -0400
+@@ -170,7 +170,9 @@
+ asprintf(&env[ei++], "THRESHOLD_COUNT=%d", bucket->count + bucket->excess);
+ env[ei] = NULL;
+ assert(ei < MAX_ENV);
++#ifdef __Linux__
+ run_trigger(bc->trigger, NULL, env);
++#endif
+ for (i = 0; i < ei; i++)
+ free(env[i]);
+ out: