Skip to content
GitLab
Menu
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
43220cf4
Commit
43220cf4
authored
Nov 15, 2000
by
Niels Möller
Browse files
* src/server_session.c (make_pty): assert that the pty is alive.
(do_alloc_pty): Likewise. Rev: src/server_session.c:1.52
parent
0acbe521
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server_session.c
View file @
43220cf4
...
...
@@ -390,8 +390,10 @@ static int make_pty(struct pty_info *pty, int *in, int *out, int *err)
pty
->
super
.
alive
,
pty
->
master
,
pty
->
slave
);
debug
(
"
\n
"
);
if
(
pty
&&
pty
->
super
.
alive
)
if
(
pty
)
{
assert
(
pty
->
super
.
alive
);
debug
(
"make_pty: Using allocated pty.
\n
"
);
in
[
0
]
=
pty
->
slave
;
in
[
1
]
=
pty
->
master
;
...
...
@@ -881,7 +883,7 @@ do_alloc_pty(struct channel_request *c UNUSED,
if
(
tty_getattr
(
pty
->
slave
,
&
ios
))
{
pty
->
super
.
alive
=
1
;
assert
(
pty
->
super
.
alive
)
;
session
->
pty
=
pty
;
/* Don't set TERM if the value is empty. */
...
...
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