[Bps-public-commit] Prophet branch, master, updated. 64485be53f3ea769e1358ed49a5c75ea1d4f722a

jesse jesse at bestpractical.com
Mon Jun 29 11:06:36 EDT 2009


The branch, master has been updated
       via  64485be53f3ea769e1358ed49a5c75ea1d4f722a (commit)
      from  caef981ec86f5719d3adfc15648335896d20c434 (commit)

Summary of changes:
 lib/Prophet/CLI.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 64485be53f3ea769e1358ed49a5c75ea1d4f722a
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Jun 29 11:06:13 2009 -0400

    Always close our pager when sd exits. Thanks to mst++

diff --git a/lib/Prophet/CLI.pm b/lib/Prophet/CLI.pm
index f06a0a2..99729ae 100644
--- a/lib/Prophet/CLI.pm
+++ b/lib/Prophet/CLI.pm
@@ -199,6 +199,9 @@ sub end_pager {
     $ORIGINAL_STDOUT = undef;
 }
 
+END {
+   *STDOUT = $ORIGINAL_STDOUT if $ORIGINAL_STDOUT;
+}
 
 __PACKAGE__->meta->make_immutable;
 no Any::Moose;

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



More information about the Bps-public-commit mailing list