~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Slight improvement to cursor blink timing: since the cursor doesn't
[sgt/putty]
/
unix
/
pty.c
diff --git
a/unix/pty.c
b/unix/pty.c
index
86e1e41
..
50b548c
100644
(file)
--- a/
unix/pty.c
+++ b/
unix/pty.c
@@
-474,6
+474,8
@@
int pty_select_result(int fd, int event)
#endif
from_backend(pty_frontend, 0, message, strlen(message));
}
#endif
from_backend(pty_frontend, 0, message, strlen(message));
}
+
+ notify_remote_exit(pty_frontend);
}
return !finished;
}
}
return !finished;
}
@@
-577,9
+579,9
@@
static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
ioctl(slavefd, TIOCSCTTY, 1);
pgrp = getpid();
tcsetpgrp(slavefd, pgrp);
ioctl(slavefd, TIOCSCTTY, 1);
pgrp = getpid();
tcsetpgrp(slavefd, pgrp);
- setpg
rp
(pgrp, pgrp);
+ setpg
id
(pgrp, pgrp);
close(open(pty_name, O_WRONLY, 0));
close(open(pty_name, O_WRONLY, 0));
- setpg
rp
(pgrp, pgrp);
+ setpg
id
(pgrp, pgrp);
/* Close everything _else_, for tidiness. */
for (i = 3; i < 1024; i++)
close(i);
/* Close everything _else_, for tidiness. */
for (i = 3; i < 1024; i++)
close(i);