Added signal catching and handling in C and Cython
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include "obiview.h"
|
||||
#include "obidebug.h"
|
||||
#include "obierrno.h"
|
||||
#include "obisig.h"
|
||||
#include "obitypes.h"
|
||||
#include "obiview.h"
|
||||
|
||||
@ -718,6 +719,8 @@ int obi_ecopcr(const char* i_dms_name,
|
||||
int32_t erri;
|
||||
int32_t errj;
|
||||
|
||||
signal(SIGINT, sig_handler);
|
||||
|
||||
if (circular)
|
||||
{
|
||||
circular = strlen(primer1);
|
||||
@ -999,6 +1002,9 @@ int obi_ecopcr(const char* i_dms_name,
|
||||
fprintf(stderr,"\rDone : %f %% ", p);
|
||||
}
|
||||
|
||||
if (! keep_running)
|
||||
return -1;
|
||||
|
||||
checkedSequence++;
|
||||
|
||||
// Get the taxid
|
||||
|
Reference in New Issue
Block a user