From 94cd1304c4b0f8dd3292bdba7d61b112c63c80f9 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 5 May 2012 10:48:19 -0400 Subject: [PATCH] might help to actually close the connection... --- mdetach.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mdetach.c b/mdetach.c index 0a8b1b1..956e7ea 100644 --- a/mdetach.c +++ b/mdetach.c @@ -13,12 +13,14 @@ int mdetach(Entry *e, void *p1, void *p2, void *p3, void *p4, void *p5) // TODO -- SO_LINGER/SO_LINGER_SEC LongWord timeout; - timeout = GetTick() + 5 * 60; - SEI(); + timeout = 0; // GetTick() + 120 * 60; + IncBusy(); + TCPIPCloseTCP(e->ipid); + e->command = kCommandDisconnectAndLogout; e->cookie = 0; e->timeout = timeout; - CLI(); + DecBusy(); return 0; } \ No newline at end of file