Compare commits

..

2 Commits

2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 0e9651441369ae6984f728b9df14dbc2fa41aa58 Subproject commit f5151f5a2b102b75486c72df8d0dddd842ed0bbc

View File

@ -37,7 +37,7 @@ PosixSignalWatcherPrivate::PosixSignalWatcherPrivate( PosixSignalWatcher* q ) :
Q_Q( PosixSignalWatcher ); Q_Q( PosixSignalWatcher );
int signal = 0; int signal = 0;
Q_UNUSED( !::read( sockfd, &signal, sizeof( signal ) ) ); (void)::read( sockfd, &signal, sizeof( signal ) );
qDebug() << "Caught signal: " << ::strsignal( signal ); qDebug() << "Caught signal: " << ::strsignal( signal );
Q_EMIT q->posixSignal( signal ); Q_EMIT q->posixSignal( signal );
} ); } );
@ -86,7 +86,7 @@ MYXLIB_INLINE void PosixSignalWatcherPrivate::watchForSignal( int signal )
*/ */
MYXLIB_INLINE void PosixSignalWatcherPrivate::signalHandler( int signal ) MYXLIB_INLINE void PosixSignalWatcherPrivate::signalHandler( int signal )
{ {
Q_UNUSED( !::write( mSockpair[0], &signal, sizeof( signal ) ) ); (void)::write( mSockpair[0], &signal, sizeof( signal ) );
} }