- Timestamp:
- May 23, 2011, 8:57:46 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 736835d
- Parents:
- ba12b44
- git-author:
- David Benjamin <davidben@mit.edu> (03/03/11 09:50:32)
- git-committer:
- David Benjamin <davidben@mit.edu> (05/23/11 20:57:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
rba12b44 r1d21d9f 380 380 } 381 381 382 static void sig_handler( int sig, void *data) {382 static void sig_handler(const siginfo_t *siginfo, void *data) { 383 383 /* If it was an interrupt, set a flag so we can handle it earlier if 384 384 * needbe. sig_handler_main_thread will check the flag to make sure 385 385 * no one else took it. */ 386 if (sig == SIGINT) {386 if (siginfo->si_signo == SIGINT) { 387 387 owl_global_add_interrupt(&g); 388 388 } 389 389 /* Send a message to the main thread. */ 390 owl_select_post_task(sig_handler_main_thread, GINT_TO_POINTER(sig), NULL); 390 owl_select_post_task(sig_handler_main_thread, 391 GINT_TO_POINTER(siginfo->si_signo), NULL); 391 392 } 392 393
Note: See TracChangeset
for help on using the changeset viewer.