IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26085


Ignore:
Timestamp:
Nov 10, 2009, 11:01:16 AM (16 years ago)
Author:
bills
Message:

in redirect_output turn on autoflush on the redirected files.
This will reduce out of order output from the ippScripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r26026 r26085  
    1616use File::Spec 0.87;
    1717use File::Temp qw( tempfile );
     18use IO::Handle;
    1819
    1920use PS::IPP::Metadata::Config 1.00;
     
    695696        print STDERR "   redirect stdout to $filename succeded on try $try\n";
    696697    }
     698    # turn off buffering of output so that output from this script doesn't appear later
     699    # that output from execed programs
     700    STDOUT->autoflush(1);
    697701    open STDERR, ">>$filename" or ( carp "failed to redirect stderr to $filename" and return undef );
     702    STDERR->autoflush(1);
    698703
    699704    return 1;
Note: See TracChangeset for help on using the changeset viewer.