process by weird POSIX-required shell behaviour.
git-svn-id: http://svn.tartarus.org/sgt/putty@2110
cda61777-01e9-0310-a592-
d414129be87e
sprintf(term_env_var, "TERM=%s", cfg.termtype);
putenv(term_env_var);
}
sprintf(term_env_var, "TERM=%s", cfg.termtype);
putenv(term_env_var);
}
+ /*
+ * 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.
+ */
+ signal(SIGINT, SIG_DFL);
+ signal(SIGQUIT, SIG_DFL);
if (pty_argv)
execvp(pty_argv[0], pty_argv);
else {
if (pty_argv)
execvp(pty_argv[0], pty_argv);
else {