XEmacs 21.4.9 "Informed Management".
[chise/xemacs-chise.git.1] / src / process-nt.c
index 2cf4b68..0ce9c25 100644 (file)
@@ -642,6 +642,9 @@ static void
 nt_finalize_process_data (Lisp_Process *p, int for_disksave)
 {
   assert (!for_disksave);
+  /* If it's still in the list of processes we are waiting on delete
+     it.  */
+  mswindows_unwait_process (p);
   if (NT_DATA (p)->h_process)
     CloseHandle (NT_DATA (p)->h_process);
 }