Changeset 9157 in ntrip
- Timestamp:
- Oct 1, 2020, 7:53:24 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncmain.cpp
r9143 r9157 57 57 using namespace std; 58 58 59 void catch_ signal(int) {59 void catch_SIGINT(int) { 60 60 cout << "Program Interrupted by Ctrl-C" << endl; 61 61 BNC_CORE->sigintReceived = 1; … … 63 63 BNC_CORE->stopPPP(); 64 64 qApp->quit(); 65 } 66 67 void catch_SIGPIPE(int signum) { 68 cout << "Caught signal SIGPIPE " << signum << endl; 65 69 } 66 70 … … 395 399 bncGetThread* getThread = 0; 396 400 397 signal(SIGPIPE, SIG_IGN);401 signal(SIGPIPE, catch_SIGPIPE); 398 402 399 403 // Interactive Mode - open the main window … … 455 459 else { 456 460 457 signal(SIGINT, catch_ signal);461 signal(SIGINT, catch_SIGINT); 458 462 459 463 casterEph = new bncEphUploadCaster(); (void) casterEph;
Note:
See TracChangeset
for help on using the changeset viewer.