[packages/ElectricFence] the missin ef.sh source file
jajcus
jajcus at pld-linux.org
Fri Dec 7 09:33:14 CET 2012
commit c2acdaadf68d2e6dd467da87c500da4e74886e74
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Fri Dec 7 09:32:51 2012 +0100
the missin ef.sh source file
ef.sh | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
---
diff --git a/ef.sh b/ef.sh
new file mode 100644
index 0000000..8c65d22
--- /dev/null
+++ b/ef.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+#
+# Simple script to run electric fence on stuff. (needs libefence.so).
+#
+# $Id$
+#
+
+# Usage check.
+if [ "$1" = "" ]; then
+ echo "$0: Usage: ef [executable] [arguments]."
+ echo " Runs the executable under the Electric Fence malloc debugger."
+ exit
+fi
+
+# Set the environment to load eletric fence.
+(\
+export LD_PRELOAD=libefence.so.0;\
+exec $*;\
+)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ElectricFence.git/commitdiff/c2acdaadf68d2e6dd467da87c500da4e74886e74
More information about the pld-cvs-commit
mailing list