Ticket #581: nocrash.patch
| File nocrash.patch, 1.2 KB (added by scottmc, 3 years ago) |
|---|
-
bwindow.cpp
199 199 200 200 dying = true; 201 201 delete_sem(_be_window_lock); 202 Unlock();202 //Unlock(); 203 203 wait_for_thread(drawing_thread_id, &result); 204 204 drawing_thread_id = -1; 205 205 Hide(); -
bsysapi.cpp
72 72 */ 73 73 bool BeAllegroApp::QuitRequested(void) 74 74 { 75 return false; 75 BApplication::QuitRequested(); 76 return main_thread_id == -1; 76 77 } 77 78 78 79 … … 128 129 using_custom_allegro_app = false; 129 130 130 131 term = getenv("TERM"); 131 if ( !strcmp(term, "dumb")) {132 if (term == NULL || !strcmp(term, "dumb")) { 132 133 /* The TERM environmental variable is set to "dumb" if the app was 133 134 * not started from a terminal. 134 135 */ … … 144 145 145 146 _be_allegro_app->Run(); 146 147 148 delete _be_allegro_app; 149 _be_allegro_app = NULL; 150 147 151 /* XXX commented out due to conflicting TRACE in Haiku 148 152 TRACE(PREFIX_I "system thread exited\n"); 149 153 */
