[-]
[+]
|
Changed |
_service:tar_git:qt5-qpa-hwcomposer-plugin-5.6.2.23.tar.bz2/hwcomposer/hwcomposer_context.cpp
^
|
@@ -52,24 +52,8 @@
#include <qcoreapplication.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
-
-#include <inttypes.h>
-#include <unistd.h>
-#include <signal.h>
-
-
QT_BEGIN_NAMESPACE
-
-static void exit_qt_gracefully(int sig)
-{
- qDebug("Exiting on signal: %d", sig);
- QCoreApplication::exit(0);
-}
-
HwComposerContext::HwComposerContext()
: info(NULL)
, backend(NULL)
@@ -77,16 +61,6 @@
, window_created(false)
, fps(0)
{
- // We need to catch the SIGTERM and SIGINT signals, so that we can do a
- // proper shutdown of Qt and the plugin, and avoid crashes, hangs and
- // reboots in cases where we don't properly close the hwcomposer.
- struct sigaction new_action;
- new_action.sa_handler = exit_qt_gracefully;
- sigemptyset(&new_action.sa_mask);
- new_action.sa_flags = 0;
- sigaction(SIGTERM, &new_action, NULL);
- sigaction(SIGINT, &new_action, NULL);
-
// This actually opens the hwcomposer device
backend = HwComposerBackend::create();
HWC_PLUGIN_ASSERT_NOT_NULL(backend);
@@ -198,6 +172,4 @@
return false;
}
-
-
QT_END_NAMESPACE
|