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

32
src/obisig.h Executable file
View File

@@ -0,0 +1,32 @@
/****************************************************************************
* Header file for obisig *
****************************************************************************/
/**
* @file obisig.h
* @author Celine Mercier (celine.mercier@metabarcoding.org)
* @date September 2019
* @brief Header file for signal catching and handling.
*/
#ifndef OBISIG_H_
#define OBISIG_H_
#include <stdint.h>
#include <signal.h>
#include <stdbool.h>
/**
* @brief Signal handling.
*
* @since September 2019
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*
*/
bool volatile keep_running;
void sig_handler(int signum);
#endif /* OBISIG_H_ */