* a null pointer and ignored everywhere.
*/
-#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE_EXTENDED
#define _GNU_SOURCE
/*
* SIGINT and SIGQUIT may have been set to ignored by our
* parent, particularly by things like sh -c 'pterm &' and
- * some window managers. Reverse this for our child process.
+ * some window managers. SIGCHLD, meanwhile, was blocked
+ * during pt_main() startup. Reverse all this for our child
+ * process.
*/
putty_signal(SIGINT, SIG_DFL);
putty_signal(SIGQUIT, SIG_DFL);
+ block_signal(SIGCHLD, 0);
if (pty_argv)
execvp(pty_argv[0], pty_argv);
else {
return pty_exit_code;
}
+static int pty_cfg_info(void *handle)
+{
+ return 0;
+}
+
Backend pty_backend = {
pty_init,
pty_free,
pty_provide_ldisc,
pty_provide_logctx,
pty_unthrottle,
+ pty_cfg_info,
1
};