summaryrefslogtreecommitdiff
path: root/contrib/scripts/live_ast
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-01-26 14:19:14 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-01-26 14:19:14 +0000
commit6b019afadace4941a409c3454fbac505bb90fabc (patch)
tree13a784b9bfb8b387c1d1471fb1f848e2b185cc7d /contrib/scripts/live_ast
parentff455ee2aa466a8345ff0f9a6a016797058146d5 (diff)
live_ast: run wrapped programs with exec
live_ast can be used as a wrapper script to run asterisk, gdb or valgrind. In those cases it runs them and returns the result. It is more useful to use 'exec' to avoid having another odd process in the chain. Review: https://reviewboard.asterisk.org/r/3110/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib/scripts/live_ast')
-rwxr-xr-xcontrib/scripts/live_ast6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/scripts/live_ast b/contrib/scripts/live_ast
index 188720f90..0b5151fa5 100755
--- a/contrib/scripts/live_ast
+++ b/contrib/scripts/live_ast
@@ -251,11 +251,11 @@ conf-file)
;;
run)
set_ld_env
- $AST_BIN -C $AST_CONF "$@"
+ exec $AST_BIN -C $AST_CONF "$@"
;;
valgrind)
set_ld_env
- valgrind $LIVE_AST_VALGRIND_ARGS $AST_BIN -C $AST_CONF "$@"
+ exec valgrind $LIVE_AST_VALGRIND_ARGS $AST_BIN -C $AST_CONF "$@"
;;
rsync)
remote_host="$1"
@@ -273,7 +273,7 @@ gen-live-asterisk)
;;
gdb)
set_ld_env
- gdb -x $GDB_INIT $AST_BIN
+ exec gdb -x $GDB_INIT $AST_BIN
;;
*)
echo "$0: Unknown command '$command'. Aborting"