Commit 6a96fa69 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Crap, have to make sure the log file is unbuffered or else all is lost

when the node reboots.
parent 8e1c0fb3
......@@ -6,6 +6,7 @@
#
use English;
use Getopt::Std;
use IO::Handle;
#
# This script is run directly from boot. It should NOT be run after
......@@ -79,7 +80,8 @@ if ($action eq "boot" || $action eq "reconfig") {
#
open(LOG, "> $LOGFILE") or
BootFatal(-1, "Could not open $LOGFILE!");
LOG->autoflush(1);
#
# This open implicitly forks a child, which goes on to execute the rest
# of the script. The parent is going to sit in this loop and capture the
......
......@@ -8,6 +8,7 @@ use English;
use Getopt::Std;
use File::Basename;
use Fcntl;
use IO::Handle;
sub WhichRawDisk();
......@@ -88,6 +89,7 @@ if ($action eq "boot" || $action eq "reconfig") {
#
open(LOG, "> $LOGFILE") or
BootFatal(-1, "Could not open $LOGFILE!");
LOG->autoflush(1);
#
# This open implicitly forks a child, which goes on to execute the rest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment