do not spawn a new shell but use exec (bnc#766006) firefox14
authorWolfgang Rosenauer <wr@rosenauer.org>
Fri, 08 Jun 2012 07:57:38 +0200
branchfirefox14
changeset 465 c49024069c9d
parent 464 1fd4a257e727
child 466 c0ae7c025b78
child 473 bfd820693349
do not spawn a new shell but use exec (bnc#766006)
MozillaFirefox/mozilla.sh.in
--- a/MozillaFirefox/mozilla.sh.in	Fri Jun 08 07:57:04 2012 +0200
+++ b/MozillaFirefox/mozilla.sh.in	Fri Jun 08 07:57:38 2012 +0200
@@ -133,10 +133,7 @@
   trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
   echo -e "set args ${1+"$@"}\nrun" > $tmpfile
   echo "$moz_debugger $MOZ_PROGRAM -x $tmpfile"
-  $moz_debugger "$MOZ_PROGRAM" -x $tmpfile
+  exec $moz_debugger "$MOZ_PROGRAM" -x $tmpfile
 else
-  $MOZ_PROGRAM "$@"
+  exec $MOZ_PROGRAM "$@"
 fi
-exitcode=$?
-
-exit $exitcode