- Timestamp:
- May 23, 2011, 8:57:46 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 6bd485e
- Parents:
- 1491439
- git-author:
- David Benjamin <davidben@mit.edu> (02/26/11 14:38:04)
- git-committer:
- David Benjamin <davidben@mit.edu> (05/23/11 20:57:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
r1491439 r47128d9 362 362 } else if (sig == SIGTERM || sig == SIGHUP) { 363 363 owl_function_quit(); 364 } else if (sig == SIGINT ) {364 } else if (sig == SIGINT && owl_global_take_interrupt(&g)) { 365 365 owl_input in; 366 366 in.ch = in.uch = owl_global_get_startup_tio(&g)->c_cc[VINTR]; … … 374 374 GSource *source; 375 375 376 /* TODO: Special-case SIGINT so that it can interrupt outside the 377 * event loop. */ 378 376 /* If it was an interrupt, set a flag so we can handle it earlier if 377 * needbe. sig_handler_main_thread will check the flag to make sure 378 * no one else took it. */ 379 if (sig == SIGINT) { 380 owl_global_add_interrupt(&g); 381 } 379 382 /* Send a message to the main thread. */ 380 383 source = g_idle_source_new();
Note: See TracChangeset
for help on using the changeset viewer.