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 |
|
|
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 |
|
#ifdef HAVE_SIGNAL_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 |
|
|