projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40040af
)
Some hosts don't have TIOCSCTTY. Don't try to use it on them.
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2005 19:57:37 +0000
(19:57 +0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2005 19:57:37 +0000
(19:57 +0000)
Patch from Mike Protts.
git-svn-id: svn://svn.tartarus.org/sgt/putty@6306
cda61777
-01e9-0310-a592-
d414129be87e
unix/uxpty.c
patch
|
blob
|
blame
|
history
diff --git
a/unix/uxpty.c
b/unix/uxpty.c
index
96489e1
..
c317437
100644
(file)
--- a/
unix/uxpty.c
+++ b/
unix/uxpty.c
@@
-744,7
+744,9
@@
static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
dup2(slavefd, 1);
dup2(slavefd, 2);
setsid();
+#ifdef TIOCSCTTY
ioctl(slavefd, TIOCSCTTY, 1);
+#endif
pgrp = getpid();
tcsetpgrp(slavefd, pgrp);
setpgid(pgrp, pgrp);