thread finishes. This will fix the known bug of exhausting the set of
available qids, and it will also fix a previously unnoticed memory
leak.
/* -*-C-*-
-$Id: os2conio.c,v 1.5 1995/01/05 23:39:57 cph Exp $
+$Id: os2conio.c,v 1.6 1995/04/22 21:06:57 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
}
}
}
+ {
+ tqueue_t * tqueue = (OS2_qid_tqueue (console_writer_qid));
+ OS2_close_qid (console_writer_qid);
+ OS2_close_std_tqueue (tqueue);
+ }
OS2_endthread ();
}
/* -*-C-*-
-$Id: os2pipe.c,v 1.3 1995/01/05 23:43:32 cph Exp $
+$Id: os2pipe.c,v 1.4 1995/04/22 21:07:12 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
break;
OS2_wait_for_readahead_ack (qid);
}
+ {
+ tqueue_t * tqueue = (OS2_qid_tqueue (qid));
+ OS2_close_qid (qid);
+ OS2_close_std_tqueue (tqueue);
+ }
OS2_endthread ();
}