Мелкие правки

This commit is contained in:
Andrei Astafev 2020-07-10 15:29:51 +03:00
parent 3c628659bc
commit 078732d308
2 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,8 @@
#ifndef MYX_QT_POSIX_SIGNAL_WATCHER_CPP_ #ifndef MYX_QT_POSIX_SIGNAL_WATCHER_CPP_
#define MYX_QT_POSIX_SIGNAL_WATCHER_CPP_ #define MYX_QT_POSIX_SIGNAL_WATCHER_CPP_
#include <myx/core/config.hpp>
#include <myx/backports/cpp/helpers.hpp> #include <myx/backports/cpp/helpers.hpp>
#include <myx/core/config.hpp>
#include <myx/qt/posix_signal_watcher.hpp> #include <myx/qt/posix_signal_watcher.hpp>
#include <myx/qt/posix_signal_watcher_p.hpp> #include <myx/qt/posix_signal_watcher_p.hpp>
@ -68,6 +68,7 @@ MYXLIB_INLINE void PosixSignalWatcherPrivate::watchForSignal( int signal )
sigact.sa_flags = 0; sigact.sa_flags = 0;
sigemptyset( &sigact.sa_mask ); sigemptyset( &sigact.sa_mask );
sigact.sa_flags |= SA_RESTART; sigact.sa_flags |= SA_RESTART;
sigact.sa_restorer = nullptr;
if ( ::sigaction( signal, &sigact, nullptr ) != 0 ) if ( ::sigaction( signal, &sigact, nullptr ) != 0 )
{ {
qDebug() << "PosixSignalWatcher: sigaction: " << ::strerror( errno ); qDebug() << "PosixSignalWatcher: sigaction: " << ::strerror( errno );

View File

@ -1,8 +1,8 @@
#ifndef MYX_QT_TRANSLATORS_CPP_ #ifndef MYX_QT_TRANSLATORS_CPP_
#define MYX_QT_TRANSLATORS_CPP_ #define MYX_QT_TRANSLATORS_CPP_
#include <myx/core/config.hpp>
#include <myx/backports/qt/common.hpp> #include <myx/backports/qt/common.hpp>
#include <myx/core/config.hpp>
#include <myx/qt/translators.hpp> #include <myx/qt/translators.hpp>