void INThandler ( int  sig  ) 

Definition at line 25 of file server.cpp.

00026 {
00027         
00028         signal(sig, SIG_IGN);
00029         cout<<"\nOUCH, did you hit Ctrl-C?\nDo you really want to quit? [y/n] ";
00030         // using a string and getline here prevents the cin from
00031         // keeping senseless things if only one char is read...
00032         string line;
00033         getline(cin,line);
00034     if (line[0] == 'y' || line[0] == 'Y') {
00035                 // funtion the sighandler of strg+c have to run!
00036                 if (servermgnt->writeCRL2file()){
00037                         cout << "KEYVIL server finished \n";
00038                         exit(0);
00039                 }
00040                 else {
00041                         signal(SIGINT, INThandler);
00042                 }
00043         }
00044     else {
00045                 signal(SIGINT, INThandler);
00046     }
00047 }


Generated on Wed Jun 25 14:47:03 2008 for keyvil by  doxygen 1.5.1