Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
mirror
ccan
Commits
298dc122
Commit
298dc122
authored
14 years ago
by
Rusty Russell
Browse files
Options
Download
Email Patches
Plain Diff
ccanlint: fix mangled output for 'make scores'
We need to flush stdout before forking.
parent
c6bbde3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tools/tools.c
tools/tools.c
+2
-0
No files found.
tools/tools.c
View file @
298dc122
...
...
@@ -81,6 +81,8 @@ char *run_with_timeout(const void *ctx, const char *cmd,
if
(
tools_verbose
)
printf
(
"Running: %s
\n
"
,
cmd
);
/* Always flush buffers before fork! */
fflush
(
stdout
);
gettimeofday
(
&
start
,
NULL
);
pid
=
fork
();
if
(
pid
==
-
1
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment