diff options
author | Gabor X Toth <*@tg-x.net> | 2015-05-07 12:15:16 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2015-05-07 12:15:16 +0000 |
commit | 229083a5e71624479fdc44a14a264fe07077e699 (patch) | |
tree | 137111049b5cd14345868b51d8350eaae70bbf02 /contrib | |
parent | 44fc5054ed8094fa028df7bae6d2c522deca04fa (diff) | |
download | gnunet-229083a5e71624479fdc44a14a264fe07077e699.tar.gz gnunet-229083a5e71624479fdc44a14a264fe07077e699.zip |
logread: no buffering
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gnunet-logread | 2 | ||||
-rwxr-xr-x | contrib/gnunet-logread-ipc-sdedit | 1 |
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 | ||
37 | mkfifo $ipc, 0600 or die "$ipc: $!\n" unless -e $ipc; | 37 | mkfifo $ipc, 0600 or die "$ipc: $!\n" unless -e $ipc; |
38 | open IPC, '<', $ipc or die "$ipc: $!\n"; | 38 | open IPC, '<', $ipc or die "$ipc: $!\n"; |
39 | $| = 1; | ||
39 | while (<IPC>) | 40 | while (<IPC>) |
40 | { | 41 | { |
41 | print; | 42 | print; |