/[svn]/linuxsampler/trunk/src/linuxsampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/linuxsampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 778 by iliev, Fri Sep 23 06:58:26 2005 UTC revision 816 by wylder, Thu Dec 22 19:29:52 2005 UTC
# Line 38  using namespace LinuxSampler; Line 38  using namespace LinuxSampler;
38  Sampler*    pSampler    = NULL;  Sampler*    pSampler    = NULL;
39  LSCPServer* pLSCPServer = NULL;  LSCPServer* pLSCPServer = NULL;
40  pthread_t   main_thread;  pthread_t   main_thread;
41    pid_t       main_pid;
42  bool bPrintStatistics = false;  bool bPrintStatistics = false;
43  bool profile = false;  bool profile = false;
44  bool tune = true;  bool tune = true;
# Line 53  int main(int argc, char **argv) { Line 54  int main(int argc, char **argv) {
54      // initialize the stack trace mechanism with our binary file      // initialize the stack trace mechanism with our binary file
55      StackTraceInit(argv[0], -1);      StackTraceInit(argv[0], -1);
56    
57        main_pid = getpid();
58      main_thread = pthread_self();      main_thread = pthread_self();
59    
60    
61    
62      // setting signal handler for catching SIGINT (thus e.g. <CTRL><C>)      // setting signal handler for catching SIGINT (thus e.g. <CTRL><C>)
63      signal(SIGINT, signal_handler);      signal(SIGINT, signal_handler);
64    
# Line 219  void signal_handler(int iSignal) { Line 223  void signal_handler(int iSignal) {
223  }  }
224    
225  void kill_app() {  void kill_app() {
226      kill(main_thread, SIGKILL);      kill(main_pid, SIGKILL);
227  }  }
228    
229  void parse_options(int argc, char **argv) {  void parse_options(int argc, char **argv) {

Legend:
Removed from v.778  
changed lines
  Added in v.816

  ViewVC Help
Powered by ViewVC