]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Another bug fix: always set the busy flag when telling a subthread
authorSimon Tatham <anakin@pobox.com>
Sat, 26 Aug 2006 10:19:23 +0000 (10:19 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 26 Aug 2006 10:19:23 +0000 (10:19 +0000)
to do something, otherwise handle_get_events will forget to tell the
front end to check for that subthread finishing. This applies even
when we're only setting `busy' to tell the subthread to terminate!

[originally from svn r6805]

windows/winhandl.c

index c7dc65b9969a192d19cac3373ef0923b1bad0868..a5b7c6967c01e7dcef1d2907610ff1bccd08a1df 100644 (file)
@@ -391,6 +391,7 @@ void handle_free(struct handle *h)
         */
        h->u.g.moribund = TRUE;
        h->u.g.done = TRUE;
+       h->u.g.busy = TRUE;
        SetEvent(h->u.g.ev_from_main);
     }
 }
@@ -424,6 +425,7 @@ void handle_got_event(HANDLE event)
            handle_destroy(h);
        } else {
            h->u.g.done = TRUE;
+           h->u.g.busy = TRUE;
            SetEvent(h->u.g.ev_from_main);
        }
        return;