Mercurial > hg > vamp-plugin-load-checker
comparison src/helper.cpp @ 64:e839338d3869 tip
Further Windows fix
author | Chris Cannam |
---|---|
date | Wed, 15 Apr 2020 16:30:40 +0100 |
parents | 091baff0a983 |
children |
comparison
equal
deleted
inserted
replaced
63:091baff0a983 | 64:e839338d3869 |
---|---|
82 #include <windows.h> | 82 #include <windows.h> |
83 #include <process.h> | 83 #include <process.h> |
84 #include <io.h> | 84 #include <io.h> |
85 #else | 85 #else |
86 #include <unistd.h> | 86 #include <unistd.h> |
87 #endif | |
88 | |
87 #include <signal.h> | 89 #include <signal.h> |
88 #endif | |
89 | |
90 #include <fcntl.h> | 90 #include <fcntl.h> |
91 | 91 |
92 #include <string> | 92 #include <string> |
93 #include <iostream> | 93 #include <iostream> |
94 #include <stdexcept> | 94 #include <stdexcept> |
369 return 2; | 369 return 2; |
370 } | 370 } |
371 | 371 |
372 signal(SIGINT, signalHandler); | 372 signal(SIGINT, signalHandler); |
373 signal(SIGTERM, signalHandler); | 373 signal(SIGTERM, signalHandler); |
374 signal(SIGSEGV, signalHandler); | |
375 signal(SIGILL, signalHandler); | |
376 signal(SIGABRT, signalHandler); | |
377 signal(SIGFPE, signalHandler); | |
374 | 378 |
375 #ifndef _WIN32 | 379 #ifndef _WIN32 |
376 signal(SIGHUP, signalHandler); | 380 signal(SIGHUP, signalHandler); |
377 signal(SIGQUIT, signalHandler); | 381 signal(SIGQUIT, signalHandler); |
378 signal(SIGILL, signalHandler); | |
379 signal(SIGABRT, signalHandler); | |
380 signal(SIGSEGV, signalHandler); | |
381 signal(SIGBUS, signalHandler); | 382 signal(SIGBUS, signalHandler); |
382 #endif | 383 #endif |
383 | 384 |
384 string descriptor = argv[1]; | 385 string descriptor = argv[1]; |
385 | 386 |