projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only select efficient unaligned accesses for x86 and powerpc
[lttng-ust.git]
/
tests
/
tap.c
diff --git
a/tests/tap.c
b/tests/tap.c
index bd7f81cc1eeeb61f455e8c756610e04b0a6d9acb..4bb695ef4ebcccd6a1bd26182b46e28aa394c7a5 100644
(file)
--- a/
tests/tap.c
+++ b/
tests/tap.c
@@
-37,7
+37,7
@@
static void *_tap_comment_stdout(void *_unused)
if (strncmp(line, "_TAP", 4)) {
fprintf(normal_stdout, "# %s", line);
} else {
if (strncmp(line, "_TAP", 4)) {
fprintf(normal_stdout, "# %s", line);
} else {
- fprintf(normal_stdout, &line[4]);
+ fprintf(normal_stdout,
"# %s",
&line[4]);
}
}
pthread_exit(0);
}
}
pthread_exit(0);
@@
-58,6
+58,9
@@
static void tap_comment_stdout(void)
goto close_pipe;
}
goto close_pipe;
}
+ /* Set it before we create the reading thread */
+ setlinebuf(pipe_r_file);
+
stdout_fileno = fileno(stdout);
if (stdout_fileno < 0) {
perror("# Couldn't get fileno for stdout!?");
stdout_fileno = fileno(stdout);
if (stdout_fileno < 0) {
perror("# Couldn't get fileno for stdout!?");
@@
-112,7
+115,7
@@
static void tap_comment_stdout(void)
setlinebuf(stdout);
setlinebuf(stderr);
setlinebuf(stdout);
setlinebuf(stderr);
- setlinebuf(pipe_r_file);
+
return;
return;
This page took
0.026503 seconds
and
4
git commands to generate.