]> git.pld-linux.org Git - packages/ElectricFence.git/commitdiff
the missin ef.sh source file
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Fri, 7 Dec 2012 08:32:51 +0000 (09:32 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Fri, 7 Dec 2012 08:32:51 +0000 (09:32 +0100)
ef.sh [new file with mode: 0644]

diff --git a/ef.sh b/ef.sh
new file mode 100644 (file)
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 $*;\
+)
This page took 0.057615 seconds and 4 git commands to generate.