"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "system/SignalMultiplexer.cpp" between
muscle8.20.zip and muscle8.30.zip

About: MUSCLE (Multi User Server Client Linking Environment) is a messaging server and networking API. The included server program ("muscled") lets its clients message each other, and/or store information in its serverside hierarchical database.

SignalMultiplexer.cpp  (muscle8.20):SignalMultiplexer.cpp  (muscle8.30)
skipping to change at line 135 skipping to change at line 135
void SignalMultiplexer :: UnregisterSignals() void SignalMultiplexer :: UnregisterSignals()
{ {
#if defined(WIN32) #if defined(WIN32)
if (_currentSignalSet.HasItems()) (void) SetConsoleCtrlHandler((PHANDLER_ROUT INE)Win32SignalHandlerCallbackFunc, false); if (_currentSignalSet.HasItems()) (void) SetConsoleCtrlHandler((PHANDLER_ROUT INE)Win32SignalHandlerCallbackFunc, false);
#elif defined(MUSCLE_USE_POSIX_SIGNALS) #elif defined(MUSCLE_USE_POSIX_SIGNALS)
struct sigaction newact; struct sigaction newact;
sigemptyset(&newact.sa_mask); sigemptyset(&newact.sa_mask);
newact.sa_flags = 0; newact.sa_flags = 0;
newact.sa_handler = NULL; newact.sa_handler = NULL;
for (uint32 i=0; i<_currentSignalSet.GetNumItems(); i++) (void) sigaction(_cu rrentSignalSet[i], NULL, NULL); for (uint32 i=0; i<_currentSignalSet.GetNumItems(); i++) (void) sigaction(_cu rrentSignalSet[i], &newact, NULL);
#endif #endif
} }
SignalMultiplexer :: SignalMultiplexer() SignalMultiplexer :: SignalMultiplexer()
: _totalSignalCounts(0) : _totalSignalCounts(0)
{ {
for (uint32 i=0; i<ARRAYITEMS(_signalCounts); i++) _signalCounts[i] = 0; for (uint32 i=0; i<ARRAYITEMS(_signalCounts); i++) _signalCounts[i] = 0;
} }
SignalMultiplexer SignalMultiplexer::_signalMultiplexer; SignalMultiplexer SignalMultiplexer::_signalMultiplexer;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)