int CheckParentProcess(CNNLHANDLE h){
	if (getppid() == 1){
		CNNL_Abort(h);
		mode |= CNNL_JOB_CANCELLED;
	}	
	return 0;
}
Exemple #2
0
int CNIF_Network_Cancel()
{
	CNNL_Abort(hnd);
	isCanceled = 1;
	return CN_LGMON_OK;
}
/*******************************************************************************
	_ij_network_terminate
********************************************************************************/
static void _ij_network_terminate(int sig_code){
	fprintf(stderr, "DEBUG: _ij_network_terminate called(%d)\n", __LINE__);

	CNNL_Abort(hnd);
	mode |= CNNL_JOB_CANCELLED;
}