From f706ba094cc805a6be5c3d4377ba4a1c7831f388 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 8 Dec 2018 23:04:53 -0500 Subject: [PATCH] clean up some tear-down Windows continued to use function pointers belonging to particular window ports that were still assigned even after that port (tty) had gone through its shutdown procedures when requested by the core. Fix that and return to the minimal function pointers that are not part of any of the actual WindowPorts. --- sys/winnt/winnt.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/winnt/winnt.c b/sys/winnt/winnt.c index 86432e028..75dda292d 100644 --- a/sys/winnt/winnt.c +++ b/sys/winnt/winnt.c @@ -507,12 +507,13 @@ int code; * not vanish instantly after being created. * GUILaunched is defined and set in nttty.c. */ - synch_cursor(); + if (GUILaunched) - getreturn("to end"); - synch_cursor(); - getreturn_enabled = TRUE; - wait_synch(); + getreturn_enabled = TRUE; + else + windowprocs = *get_safe_procs(1); + if (getreturn_enabled) + wait_synch(); exit(code); }