Files
2022-12-13 12:44:04 +01:00

46 lines
1004 B
C++

//-----------------------------------------------------------------------------
// Copyright (c) 1994,1995 Southeastern Universities Research Association,
// Continuous Electron Beam Accelerator Facility
//
// This software was developed under a United States Government license
// described in the NOTICE file included as part of this distribution.
//
//-----------------------------------------------------------------------------
//
// Description:
// rsvc server signal handler
//
// Author:
// Jie Chen
//
//
//
#ifndef _RSVC_SIGNAL_HANDLER_H
#define _RSVC_SIGNAL_HANDLER_H
class cdevReactor;
extern int rsvc_finished;
extern cdevReactor* rsvc_reactor;
class rsvcSignal
{
public:
// operation
static int registerSignalHandlers (void);
// all signal handlers
static void signalFunc (int signo);
private:
// all signals we want to catch
static int signals[];
static int numSignals;
// deny direct access
rsvcSignal (void);
};
#endif