Always call TerminateProcess when exiting a session.
authorSteven Edwards <winehacker@gmail.com>
Sat, 7 Feb 2009 17:39:51 +0000 (17:39 +0000)
committerSteven Edwards <winehacker@gmail.com>
Sat, 7 Feb 2009 17:39:51 +0000 (17:39 +0000)
svn path=/trunk/; revision=39460

rosapps/applications/sysutils/telnetd/telnetd.c

index 882e272..7624f8d 100644 (file)
@@ -11,6 +11,9 @@
  * Use freely, no copyrights.
  * Use Linux.
  *
+ * Parts Copyright Steven Edwards
+ * Public Domain
+ *
  * TODO: 
  * - access control
  * - will/won't handshake
@@ -615,7 +618,9 @@ static void TerminateShell(client_t *client)
             }
             TerminateProcess(client->hProcess, 0);
         }
+        TerminateProcess(client->hProcess, 0);
     }
+    TerminateProcess(client->hProcess, 0);
 }
 
 /* ErrorExit */