From: Jacek Konieczny Date: Fri, 7 Dec 2012 08:32:51 +0000 (+0100) Subject: the missin ef.sh source file X-Git-Tag: auto/th/ElectricFence-2.2.4-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2FElectricFence.git;a=commitdiff_plain;h=c2acdaadf68d2e6dd467da87c500da4e74886e74 the missin ef.sh source file --- 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 $*;\ +)