/[svn]/qsampler/trunk/src/qsamplerMainForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.cpp

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

revision 2112 by capela, Wed Jul 21 18:33:25 2010 UTC revision 2144 by persson, Wed Oct 6 18:49:54 2010 UTC
# Line 96  static WSADATA _wsaData; Line 96  static WSADATA _wsaData;
96  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
97  // LADISH Level 1 support stuff.  // LADISH Level 1 support stuff.
98    
99  #ifdef HAVE_SIGNAL_H  #if defined(HAVE_SIGNAL_H) && defined(HAVE_SYS_SOCKET_H)
100    
101  #include <QSocketNotifier>  #include <QSocketNotifier>
102    
# Line 202  MainForm::MainForm ( QWidget *pParent ) Line 202  MainForm::MainForm ( QWidget *pParent )
202    
203          m_iTimerSlot = 0;          m_iTimerSlot = 0;
204    
205  #ifdef HAVE_SIGNAL_H  #if defined(HAVE_SIGNAL_H) && defined(HAVE_SYS_SOCKET_H)
206    
207          // Set to ignore any fatal "Broken pipe" signals.          // Set to ignore any fatal "Broken pipe" signals.
208          ::signal(SIGPIPE, SIG_IGN);          ::signal(SIGPIPE, SIG_IGN);
# Line 228  MainForm::MainForm ( QWidget *pParent ) Line 228  MainForm::MainForm ( QWidget *pParent )
228    
229  #else   // HAVE_SIGNAL_H  #else   // HAVE_SIGNAL_H
230    
231          m_pSocketNotifier = NULL;          m_pUsr1Notifier = NULL;
232                    
233  #endif  // !HAVE_SIGNAL_H  #endif  // !HAVE_SIGNAL_H
234    
# Line 403  MainForm::~MainForm() Line 403  MainForm::~MainForm()
403          WSACleanup();          WSACleanup();
404  #endif  #endif
405    
406  #ifdef HAVE_SIGNAL_H  #if defined(HAVE_SIGNAL_H) && defined(HAVE_SYS_SOCKET_H)
407          if (m_pUsr1Notifier)          if (m_pUsr1Notifier)
408                  delete m_pUsr1Notifier;                  delete m_pUsr1Notifier;
409  #endif  #endif
# Line 691  void MainForm::customEvent ( QEvent* pEv Line 691  void MainForm::customEvent ( QEvent* pEv
691  // LADISH Level 1 -- SIGUSR1 signal handler.  // LADISH Level 1 -- SIGUSR1 signal handler.
692  void MainForm::handle_sigusr1 (void)  void MainForm::handle_sigusr1 (void)
693  {  {
694    #if defined(HAVE_SIGNAL_H) && defined(HAVE_SYS_SOCKET_H)
695    
696          char c;          char c;
697    
698          if (::read(g_fdUsr1[1], &c, sizeof(c)) > 0)          if (::read(g_fdUsr1[1], &c, sizeof(c)) > 0)
699                  saveSession(false);                  saveSession(false);
700    
701    #endif
702  }  }
703    
704    

Legend:
Removed from v.2112  
changed lines
  Added in v.2144

  ViewVC Help
Powered by ViewVC