Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
3feef8d3
Commit
3feef8d3
authored
Dec 18, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* server.c (do_eof): Consider closing (if CHANNEL_SENT_EOF and
CHANNEL_CLOSE_AT_EOF are both set). Rev: src/server.c:1.33
parent
0ed3917a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/server.c
src/server.c
+7
-3
No files found.
src/server.c
View file @
3feef8d3
...
...
@@ -382,13 +382,17 @@ static int do_send(struct ssh_channel *c)
return
LSH_OK
|
LSH_GOON
;
}
static
int
do_eof
(
struct
ssh_channel
*
c
)
static
int
do_eof
(
struct
ssh_channel
*
c
hannel
)
{
CAST
(
server_session
,
session
,
c
);
CAST
(
server_session
,
session
,
c
hannel
);
write_buffer_close
(
session
->
in
->
buffer
);
return
LSH_OK
|
LSH_GOON
;
if
(
(
channel
->
flags
&
CHANNEL_SENT_EOF
)
&&
(
channel
->
flags
&
CHANNEL_CLOSE_AT_EOF
))
return
channel_close
(
channel
);
else
return
LSH_OK
|
LSH_GOON
;
}
static
void
do_close
(
struct
ssh_channel
*
c
)
...
...
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