summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2015-05-07 12:15:16 +0000
committerGabor X Toth <*@tg-x.net>2015-05-07 12:15:16 +0000
commit229083a5e71624479fdc44a14a264fe07077e699 (patch)
tree137111049b5cd14345868b51d8350eaae70bbf02 /contrib
parent44fc5054ed8094fa028df7bae6d2c522deca04fa (diff)
logread: no buffering
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gnunet-logread2
-rwxr-xr-xcontrib/gnunet-logread-ipc-sdedit1
2 files changed, 2 insertions, 1 deletions
diff --git a/contrib/gnunet-logread b/contrib/gnunet-logread
index 173ed2387..d5c8b1676 100755
--- a/contrib/gnunet-logread
+++ b/contrib/gnunet-logread
@@ -70,7 +70,7 @@ while (<>)
my $msg = exists $msgtypes{$type} ? $msgtypes{$type} : $type;
my $ofh = select IPC;
print IPC "$time\t$from -> $to\t$msg ($size)\n";
- $|++;
+ $| = 1;
select $ofh;
}
if (($time, $level, $msg) =
diff --git a/contrib/gnunet-logread-ipc-sdedit b/contrib/gnunet-logread-ipc-sdedit
index e482eee30..197e6f575 100755
--- a/contrib/gnunet-logread-ipc-sdedit
+++ b/contrib/gnunet-logread-ipc-sdedit
@@ -36,6 +36,7 @@ print $sdedit "\n";
mkfifo $ipc, 0600 or die "$ipc: $!\n" unless -e $ipc;
open IPC, '<', $ipc or die "$ipc: $!\n";
+$| = 1;
while (<IPC>)
{
print;