From bccc0f9c2e75dcb4d4a18821cefb3d4fdd0436e0 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 1 Apr 2007 20:55:43 +0000
Subject: [PATCH] Allow the com hangup (drop DTR) option to be controlled in
 the .ini file

---
 src/sexpots/sexpots.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sexpots/sexpots.c b/src/sexpots/sexpots.c
index e4f5cd74d2..02578812c0 100644
--- a/src/sexpots/sexpots.c
+++ b/src/sexpots/sexpots.c
@@ -709,7 +709,8 @@ void parse_ini_file(const char* ini_fname)
 	iniReadString(fp, "COM", "ModemInit", "AT&F", mdm_init);
 	iniReadString(fp, "COM", "ModemAutoAnswer", "ATS0=1", mdm_autoans);
 	iniReadString(fp, "COM", "ModemCleanup", "ATS0=0", mdm_cleanup);
-	mdm_null = iniReadBool(fp, "COM", "NullModem", mdm_null);
+	com_hangup	= iniReadBool(fp, "COM", "Hangup", com_hangup);
+	mdm_null	= iniReadBool(fp, "COM", "NullModem", mdm_null);
 	mdm_timeout = iniReadInteger(fp, "COM", "ModemTimeout", mdm_timeout);
 	dcd_timeout = iniReadInteger(fp, "COM", "DCDTimeout", dcd_timeout);
 
-- 
GitLab