]> git.pond.sub.org Git - empserver/commitdiff
(empth_exit): Fix shutdown on reading "quit" from stdin (crash bug,
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 15 Jan 2004 16:29:53 +0000 (16:29 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 15 Jan 2004 16:29:53 +0000 (16:29 +0000)
reportedly).

src/lib/empthread/ntthread.c

index d2cd029761bac10c2c4e6dee83184c9766616c95..4b4631e98a926fc015c0f04a79c83d232e1ec4d1 100644 (file)
@@ -473,10 +473,8 @@ empth_exit(void)
            printf("\nEmpire Server>");
            fgets(buf, sizeof(buf), stdin);
            if (!strnicmp(buf, "quit", 4))
-               break;
+               shutdwn(0);
        }
-       TlsSetValue(loc_GVAR.dwTLSIndex, NULL);
-       loc_FreeThreadInfo(pThread);
     } else {
        TlsSetValue(loc_GVAR.dwTLSIndex, NULL);
        loc_FreeThreadInfo(pThread);