]>
Commit | Line | Data |
---|---|---|
c2acdaad JK |
1 | #!/bin/sh |
2 | ||
3 | # | |
4 | # Simple script to run electric fence on stuff. (needs libefence.so). | |
5 | # | |
6 | # $Id$ | |
7 | # | |
8 | ||
9 | # Usage check. | |
10 | if [ "$1" = "" ]; then | |
11 | echo "$0: Usage: ef [executable] [arguments]." | |
12 | echo " Runs the executable under the Electric Fence malloc debugger." | |
13 | exit | |
14 | fi | |
15 | ||
16 | # Set the environment to load eletric fence. | |
17 | (\ | |
18 | export LD_PRELOAD=libefence.so.0;\ | |
19 | exec $*;\ | |
20 | ) |