Compare commits
2 Commits
1abebc0be6
...
827f153c2e
Author | SHA1 | Date | |
---|---|---|---|
827f153c2e | |||
1af27eaf54 |
@ -1 +1 @@
|
|||||||
Subproject commit 0e9651441369ae6984f728b9df14dbc2fa41aa58
|
Subproject commit f5151f5a2b102b75486c72df8d0dddd842ed0bbc
|
@ -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 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user