repairing server's action after EOR signal
[u/mrichter/AliRoot.git] / MONITOR / AliChildProcTerminator.h
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #ifndef AliChildProcTerminator_H
11 #define AliChildProcTerminator_H
12
13 #include "TObject.h"
14 #include "TQObject.h"
15
16 //______________________________________________________________________________
17 // Short description of AliChildProcTerminator
18 //
19
20 class AliChildProcTerminator : public TObject,
21                        public TQObject
22 {
23 public:
24   void ChildProcTerm(Int_t pid, Int_t status); // *SIGNAL*
25
26   static AliChildProcTerminator* Instance();
27
28 private:
29   AliChildProcTerminator();
30   virtual ~AliChildProcTerminator() {}
31
32   AliChildProcTerminator(const AliChildProcTerminator&);            // Not implemented
33   AliChildProcTerminator& operator=(const AliChildProcTerminator&); // Not implemented
34
35   static void sig_handler(int sig);
36
37   static AliChildProcTerminator* fgTheOne;
38
39   ClassDef(AliChildProcTerminator, 0);
40 };
41
42 #endif