]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxpty.c
Add ability for ssh2_userkey_loadpub() to return the key comment.
[PuTTY.git] / unix / uxpty.c
index 96489e1a53c281042e07d6a524d93fc33fca3f3b..c3174373ecf1fd058e6a64c73ecabe3d1e034de9 100644 (file)
@@ -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);