1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 19:42:48 -05:00

Jacob's patch to improve Close On Exit behaviour

[originally from svn r927]
This commit is contained in:
Simon Tatham
2001-02-05 13:08:18 +00:00
parent 0507b7437a
commit 4d830f7587
4 changed files with 42 additions and 19 deletions

View File

@ -42,7 +42,7 @@ void save_settings (char *section, int do_host, Config *cfg) {
}
write_setting_s (sesskey, "Protocol", p);
}
write_setting_i (sesskey, "CloseOnExit", !!cfg->close_on_exit);
write_setting_i (sesskey, "CloseOnExit", cfg->close_on_exit);
write_setting_i (sesskey, "WarnOnClose", !!cfg->warn_on_close);
write_setting_i (sesskey, "PingInterval", cfg->ping_interval / 60); /* minutes */
write_setting_i (sesskey, "PingIntervalSecs", cfg->ping_interval % 60); /* seconds */
@ -171,7 +171,7 @@ void load_settings (char *section, int do_host, Config *cfg) {
break;
}
gppi (sesskey, "CloseOnExit", 1, &cfg->close_on_exit);
gppi (sesskey, "CloseOnExit", COE_NORMAL, &cfg->close_on_exit);
gppi (sesskey, "WarnOnClose", 1, &cfg->warn_on_close);
{
/* This is two values for backward compatibility with 0.50/0.51 */