Skip to content
Snippets Groups Projects
Commit 6b019afa authored by Tzafrir Cohen's avatar Tzafrir Cohen
Browse files

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
parent ff455ee2
No related branches found
No related tags found
No related merge requests found
...@@ -251,11 +251,11 @@ conf-file) ...@@ -251,11 +251,11 @@ conf-file)
;; ;;
run) run)
set_ld_env set_ld_env
$AST_BIN -C $AST_CONF "$@" exec $AST_BIN -C $AST_CONF "$@"
;; ;;
valgrind) valgrind)
set_ld_env 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) rsync)
remote_host="$1" remote_host="$1"
...@@ -273,7 +273,7 @@ gen-live-asterisk) ...@@ -273,7 +273,7 @@ gen-live-asterisk)
;; ;;
gdb) gdb)
set_ld_env set_ld_env
gdb -x $GDB_INIT $AST_BIN exec gdb -x $GDB_INIT $AST_BIN
;; ;;
*) *)
echo "$0: Unknown command '$command'. Aborting" echo "$0: Unknown command '$command'. Aborting"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment