Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
ca58a7d7
Commit
ca58a7d7
authored
Sep 24, 2001
by
Niels Möller
Browse files
(write_buffer_close): Call close_fd if buffer
is empty. Rev: src/write_buffer.c:1.25
parent
ad9a17ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/write_buffer.c
View file @
ca58a7d7
...
...
@@ -154,9 +154,13 @@ void write_buffer_consume(struct write_buffer *buffer, UINT32 size)
FLOW_CONTROL_REPORT
(
buffer
->
report
,
size
);
}
/* FIXME: Delete this function, move the logic to close_fd_nicely or
* something instead. */
void
write_buffer_close
(
struct
write_buffer
*
buffer
)
{
buffer
->
closed
=
1
;
if
(
buffer
->
empty
)
close_fd
(
buffer
->
fd
);
}
struct
write_buffer
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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