Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
eeaa048c
Commit
eeaa048c
authored
Nov 18, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add reason argument to close_fd.
Rev: src/io.c:1.27 Rev: src/io.h:1.19
parent
86db2e21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/io.c
src/io.c
+2
-2
src/io.h
src/io.h
+2
-1
No files found.
src/io.c
View file @
eeaa048c
...
@@ -710,9 +710,9 @@ struct io_fd *io_write(struct io_backend *b,
...
@@ -710,9 +710,9 @@ struct io_fd *io_write(struct io_backend *b,
/* Marks a file for closing, at the end of the current iteration.
/* Marks a file for closing, at the end of the current iteration.
* FIXME: Could be generalized for other fd:s than read-write fds. */
* FIXME: Could be generalized for other fd:s than read-write fds. */
void
close_fd
(
struct
lsh_fd
*
fd
)
void
close_fd
(
struct
lsh_fd
*
fd
,
int
reason
)
{
{
debug
(
"Marking fd %d for closing.
\n
"
,
fd
->
fd
);
debug
(
"Marking fd %d for closing.
\n
"
,
fd
->
fd
);
fd
->
close_reason
=
reason
;
fd
->
close_now
=
1
;
fd
->
close_now
=
1
;
}
}
src/io.h
View file @
eeaa048c
...
@@ -187,6 +187,7 @@ struct io_fd *io_write(struct io_backend *b,
...
@@ -187,6 +187,7 @@ struct io_fd *io_write(struct io_backend *b,
UINT32
block_size
,
UINT32
block_size
,
struct
close_callback
*
close_callback
);
struct
close_callback
*
close_callback
);
void
close_fd
(
struct
lsh_fd
*
fd
);
void
close_fd
(
struct
lsh_fd
*
fd
,
int
reason
);
#endif
/* LSH_IO_H_INCLUDED */
#endif
/* LSH_IO_H_INCLUDED */
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