#include #include #include "TRint.h" #include "TSystem.h" #include "TSysEvtHandler.h" using namespace std; class TInterruptHandler : public TSignalHandler { public: TInterruptHandler() : TSignalHandler(kSigInterrupt, kFALSE) { } virtual Bool_t Notify() { // do anything cout<<"bye bye"<Add(); TRint *theApp = new TRint("App", &argc, argv,NULL,0); theApp->Run(false); return 1; }