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
96b137d2
Commit
96b137d2
authored
Feb 24, 2009
by
Niels Möller
Browse files
(pty_open_slave): Work around Solaris problem with bogus definition of
TIOCSCTTY. Rev: src/server_pty.c:1.36
parent
eb346af1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server_pty.c
View file @
96b137d2
...
...
@@ -38,6 +38,16 @@
# include <stropts.h>
/* isastream() */
#endif
/* Kludge... On Solaris, including termios.h brings in a compatibility
definition of TIOCSCTTY, which doesn't work. So check if it's
defined before the includes that bring in termios.h. */
#ifdef TIOCSCTTY
# define HAVE_TIOCSCTTY 1
#else
# define HAVE_TIOCSCTTY 0
#endif
#include
"server_pty.h"
#include
"channel.h"
...
...
@@ -169,7 +179,7 @@ pty_open_slave(struct pty_info *pty)
/* On BSD systems, use TIOCSCTTY. */
#if
def
TIOCSCTTY
#if
HAVE_
TIOCSCTTY
if
(
ioctl
(
fd
,
TIOCSCTTY
,
NULL
)
<
0
)
{
werror
(
"pty_open_slave: Failed to set the controlling tty: %e.
\n
"
,
errno
);
...
...
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