Merge branch 'master' of git.246060.ru:f1x1t/myxlib

This commit is contained in:
Andrei Astafev 2020-12-07 16:04:29 +03:00
commit 39b264628c

View File

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