aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-229083a5e71624479fdc44a14a264fe07077e699.tar.gz
gnunet-229083a5e71624479fdc44a14a264fe07077e699.zip
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 (<>)
70 my $msg = exists $msgtypes{$type} ? $msgtypes{$type} : $type; 70 my $msg = exists $msgtypes{$type} ? $msgtypes{$type} : $type;
71 my $ofh = select IPC; 71 my $ofh = select IPC;
72 print IPC "$time\t$from -> $to\t$msg ($size)\n"; 72 print IPC "$time\t$from -> $to\t$msg ($size)\n";
73 $|++; 73 $| = 1;
74 select $ofh; 74 select $ofh;
75 } 75 }
76 if (($time, $level, $msg) = 76 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";
36 36
37mkfifo $ipc, 0600 or die "$ipc: $!\n" unless -e $ipc; 37mkfifo $ipc, 0600 or die "$ipc: $!\n" unless -e $ipc;
38open IPC, '<', $ipc or die "$ipc: $!\n"; 38open IPC, '<', $ipc or die "$ipc: $!\n";
39$| = 1;
39while (<IPC>) 40while (<IPC>)
40{ 41{
41 print; 42 print;