[Bps-public-commit] SD branch, master, updated. 2de7ef307fbdeec713e96c268d5692a8f7750530

jesse jesse at bestpractical.com
Tue Mar 17 11:44:38 EDT 2009


The branch, master has been updated
       via  2de7ef307fbdeec713e96c268d5692a8f7750530 (commit)
      from  5c51b409f6b21fc525b4b4924c749db15bd8d7e8 (commit)

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

- Log -----------------------------------------------------------------
commit 2de7ef307fbdeec713e96c268d5692a8f7750530
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Mar 17 11:44:16 2009 -0400

    The process that stays in the foreground should be the server, not the browser launcher

diff --git a/lib/App/SD/CLI/Command/Browser.pm b/lib/App/SD/CLI/Command/Browser.pm
index f7952c5..1deaaf7 100644
--- a/lib/App/SD/CLI/Command/Browser.pm
+++ b/lib/App/SD/CLI/Command/Browser.pm
@@ -21,10 +21,9 @@ sub open_browser {
     }
 
     if ($args{url}) {
-        return if fork == 0;
+        return if fork != 0;
         sleep 2;
-        exec($opener, $args{url})
-            or die "Couldn't exec $opener: $!";
+        exec($opener, $args{url}) or die "Couldn't exec $opener: $!";
     }
 }
 

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



More information about the Bps-public-commit mailing list