HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #581

Ticket #581: nocrash.patch

File nocrash.patch, 1.2 KB (added by scottmc, 3 years ago)

updated patch the removed unlock(), maybe it needs to be placed elsewhere?

  • bwindow.cpp

     
    199199 
    200200   dying = true; 
    201201   delete_sem(_be_window_lock); 
    202    Unlock(); 
     202   //Unlock(); 
    203203   wait_for_thread(drawing_thread_id, &result); 
    204204   drawing_thread_id = -1; 
    205205   Hide(); 
  • bsysapi.cpp

     
    7272 */ 
    7373bool BeAllegroApp::QuitRequested(void) 
    7474{ 
    75    return false; 
     75        BApplication::QuitRequested(); 
     76   return main_thread_id == -1; 
    7677} 
    7778 
    7879 
    … …  
    128129      using_custom_allegro_app = false; 
    129130 
    130131      term = getenv("TERM"); 
    131       if (!strcmp(term, "dumb")) { 
     132      if (term == NULL || !strcmp(term, "dumb")) { 
    132133         /* The TERM environmental variable is set to "dumb" if the app was 
    133134          * not started from a terminal. 
    134135          */ 
    … …  
    144145 
    145146   _be_allegro_app->Run(); 
    146147 
     148   delete _be_allegro_app; 
     149   _be_allegro_app = NULL; 
     150 
    147151   /* XXX commented out due to conflicting TRACE in Haiku 
    148152   TRACE(PREFIX_I "system thread exited\n"); 
    149153   */ 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/