Compare commits
No commits in common. "827f153c2ef25b80c1410e4d181f8b12057ab80a" and "1abebc0be653348ea885fe42666082cd160fbafb" have entirely different histories.
827f153c2e
...
1abebc0be6
@ -1 +1 @@
|
|||||||
Subproject commit f5151f5a2b102b75486c72df8d0dddd842ed0bbc
|
Subproject commit 0e9651441369ae6984f728b9df14dbc2fa41aa58
|
@ -37,7 +37,7 @@ PosixSignalWatcherPrivate::PosixSignalWatcherPrivate( PosixSignalWatcher* q ) :
|
|||||||
Q_Q( PosixSignalWatcher );
|
Q_Q( PosixSignalWatcher );
|
||||||
|
|
||||||
int signal = 0;
|
int signal = 0;
|
||||||
(void)::read( sockfd, &signal, sizeof( signal ) );
|
Q_UNUSED( !::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 )
|
||||||
{
|
{
|
||||||
(void)::write( mSockpair[0], &signal, sizeof( signal ) );
|
Q_UNUSED( !::write( mSockpair[0], &signal, sizeof( signal ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user