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
13140b8c
Commit
13140b8c
authored
Oct 29, 2001
by
Niels Möller
Browse files
(do_eof): Signal EOF on the process' stdin.
Rev: src/server_session.c:1.74
parent
e3040dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server_session.c
View file @
13140b8c
...
...
@@ -133,6 +133,16 @@ do_eof(struct ssh_channel *channel)
trace
(
"server_session.c: do_eof
\n
"
);
if
(
session
->
pty
)
/* Is there any better way to signal EOF on a pty? This is what
* emacs does. */
A_WRITE
(
&
session
->
in
->
write_buffer
->
super
,
ssh_format
(
"%lc"
,
/* C-d */
4
));
if
(
shutdown
(
session
->
in
->
fd
,
SHUT_WR
)
<
0
)
werror
(
"server_session.c: do_eof, shutdown failed, (errno = %i): %z
\n
"
,
errno
,
STRERROR
(
errno
));
close_fd_nicely
(
session
->
in
);
}
...
...
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