[asterisk-commits] tzafrir: trunk r406503 - /trunk/contrib/scripts/live_ast
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Jan 26 08:19:22 CST 2014
Author: tzafrir
Date: Sun Jan 26 08:19:14 2014
New Revision: 406503
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=406503
Log:
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/
Modified:
trunk/contrib/scripts/live_ast
Modified: trunk/contrib/scripts/live_ast
URL: http://svnview.digium.com/svn/asterisk/trunk/contrib/scripts/live_ast?view=diff&rev=406503&r1=406502&r2=406503
==============================================================================
--- trunk/contrib/scripts/live_ast (original)
+++ trunk/contrib/scripts/live_ast Sun Jan 26 08:19:14 2014
@@ -251,11 +251,11 @@
;;
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 @@
;;
gdb)
set_ld_env
- gdb -x $GDB_INIT $AST_BIN
+ exec gdb -x $GDB_INIT $AST_BIN
;;
*)
echo "$0: Unknown command '$command'. Aborting"
More information about the asterisk-commits
mailing list