[Bps-public-commit] SD branch, master, updated. 67e853964e310f2403bca7ae894e236d3483035c

sartak at bestpractical.com sartak at bestpractical.com
Mon Mar 16 13:54:38 EDT 2009


The branch, master has been updated
       via  67e853964e310f2403bca7ae894e236d3483035c (commit)
      from  068ebe339304d08fe954afca1f1065730aa66c23 (commit)

Summary of changes:
 lib/App/SD/CLI/Command/Browser.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 67e853964e310f2403bca7ae894e236d3483035c
Author: Shawn M Moore <sartak at gmail.com>
Date:   Mon Mar 16 13:54:15 2009 -0400

    Use exec(foo) instead of `foo`; exit

diff --git a/lib/App/SD/CLI/Command/Browser.pm b/lib/App/SD/CLI/Command/Browser.pm
index 8d99538..cb67206 100644
--- a/lib/App/SD/CLI/Command/Browser.pm
+++ b/lib/App/SD/CLI/Command/Browser.pm
@@ -16,7 +16,7 @@ sub open_browser {
     my %args = (@_);
     my $opener = $self->open_url_cmd;
     if ($args{url}) {
-        fork || do { sleep 2; `$opener $args{url}`; exit};
+        fork || do { sleep 2; exec($opener, $args{url}) };
     }
 }
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list