aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2015-07-08 23:00:26 +0200
committerMarc Schink <swo-dev@marcschink.de>2015-07-10 08:43:35 +0200
commitbbc937ccf5a28ab259f1eea4726456d99d5a2314 (patch)
treeb65dc9bb862a682903eb587cffd924b0ce2bb25d
parent8500284ad7281582c0d38b1e610c585940abc4d9 (diff)
Disable buffering for input files.
This enables real-time trace analysis from input files which is useful for named pipes.
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index f5d9023..710db7d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -464,8 +464,7 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- if (!input_file)
- g_io_channel_set_buffered(input, FALSE);
+ g_io_channel_set_buffered(input, FALSE);
ret = libswo_init(&ctx, NULL, BUFFER_SIZE * 2);