Changeset de6f317


Ignore:
Timestamp:
Sep 18, 2010, 3:14:31 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
9c678a5
Parents:
3ecd78b
git-author:
David Benjamin <davidben@mit.edu> (09/14/10 17:57:36)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 15:14:31)
Message:
Move zephyr and ncurses shutdown into main

They are initialized in main, so they may as well be tore down there.
Although, we'll probably want to move both elsewhere sometime.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r3ecd78b rde6f317  
    960960    kill(owl_global_get_newmsgproc_pid(&g), SIGHUP);
    961961  }
    962 
    963   /* Quit zephyr */
    964   owl_zephyr_shutdown();
    965962 
    966963  /* Quit AIM */
     
    968965    owl_aim_logout();
    969966  }
    970 
    971   /* done with curses */
    972   endwin();
    973 
    974   /* restore terminal settings */
    975   tcsetattr(0, TCSAFLUSH, owl_global_get_startup_tio(&g));
    976967
    977968  owl_function_debugmsg("Quitting Owl");
  • owl.c

    r3ecd78b rde6f317  
    149149}
    150150
     151void owl_shutdown_curses(void) {
     152  endwin();
     153  /* restore terminal settings */
     154  tcsetattr(0, TCSAFLUSH, owl_global_get_startup_tio(&g));
     155}
    151156
    152157/*
     
    585590  owl_function_debugmsg("startup: entering main loop");
    586591  owl_select_run_loop();
     592
     593  /* Shut down everything. */
     594  owl_zephyr_shutdown();
     595  owl_shutdown_curses();
    587596  return 0;
    588597}
Note: See TracChangeset for help on using the changeset viewer.