Exemplo n.º 1
0
void mch_exit(int r)
{
  exiting = TRUE;

  ui_builtin_stop();
  ui_flush();
  ml_close_all(TRUE);           /* remove all memfiles */

  event_teardown();

#ifdef EXITFREE
  free_all_mem();
#endif

  exit(r);
}
Exemplo n.º 2
0
void mch_exit(int r)
{
  exiting = true;

  ui_builtin_stop();
  ui_flush();
  ml_close_all(true);           /* remove all memfiles */

  event_teardown();
  stream_set_blocking(input_global_fd(), true);  // normalize stream (#2598)

#ifdef EXITFREE
  free_all_mem();
#endif

  exit(r);
}