Added signal catching and handling in C and Cython

This commit is contained in:
Celine Mercier
2019-09-21 16:47:22 +02:00
parent 06f9d6da60
commit ec0737a600
23 changed files with 178 additions and 25 deletions

View File

@ -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