From c2acdaadf68d2e6dd467da87c500da4e74886e74 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Fri, 7 Dec 2012 09:32:51 +0100 Subject: [PATCH] the missin ef.sh source file --- ef.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ef.sh 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 $*;\ +) -- 2.43.0