GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4SocketSignalHandler.h
Go to the documentation of this file.
1 // $Id: TGo4SocketSignalHandler.h 884 2012-11-10 16:47:22Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum f�r Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4SOCKETSIGNALHANDLER_H
15 #define TGO4SOCKETSIGNALHANDLER_H
16 
17 #include "Rtypes.h"
18 
20  public:
21 
22  TGo4SocketSignalHandler(Int_t signum, Bool_t enabled=kTRUE);
23 
24  virtual ~TGo4SocketSignalHandler();
25 
26  static void SetSigWINCH(Bool_t enabled = kTRUE);
27 
28  static bool IsLastSignalWINCH();
29 
30  static void DisableSigPipe();
31 
32  static void SetSignalAction(Int_t signum, Bool_t enabled=kTRUE);
33 
34  static void Handle(int);
35 
36  static Int_t GetLastSignal();
37 
38  static void SetLastSignal(Int_t v = 0);
39 
40  private:
42 
43  static Int_t fgiLastSignal;
44 };
45 
46 #endif //TGO4SOCKETSIGNALHANDLER_H
static void SetLastSignal(Int_t v=0)
static void SetSigWINCH(Bool_t enabled=kTRUE)
static void SetSignalAction(Int_t signum, Bool_t enabled=kTRUE)