Mercurial > hg > beaglert
diff projects/oscillator_bank/main.cpp @ 15:901d205d1a3c
Updated to latest PRU library; external PRU file no longer needed. Also catch SIGTERM as well as SIGINT to clean up gracefully.
author | andrewm |
---|---|
date | Sat, 07 Feb 2015 16:41:56 +0000 |
parents | 09f03ac40fcc |
children | a6d223473ea2 |
line wrap: on
line diff
--- a/projects/oscillator_bank/main.cpp Fri Jan 23 15:35:10 2015 +0000 +++ b/projects/oscillator_bank/main.cpp Sat Feb 07 16:41:56 2015 +0000 @@ -96,8 +96,9 @@ return -1; } - // Set up interrupt handler to catch Control-C + // Set up interrupt handler to catch Control-C and SIGTERM signal(SIGINT, interrupt_handler); + signal(SIGTERM, interrupt_handler); // Run until told to stop while(!gShouldStop) {