summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventdispatcher_unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_unix.cpp')
-rw-r--r--src/corelib/kernel/qeventdispatcher_unix.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_unix.cpp b/src/corelib/kernel/qeventdispatcher_unix.cpp
index 6c2a610a56..995f5101cb 100644
--- a/src/corelib/kernel/qeventdispatcher_unix.cpp
+++ b/src/corelib/kernel/qeventdispatcher_unix.cpp
@@ -72,20 +72,6 @@
QT_BEGIN_NAMESPACE
-/*****************************************************************************
- UNIX signal handling
- *****************************************************************************/
-
-static sig_atomic_t signal_received;
-static sig_atomic_t signals_fired[NSIG];
-
-static void signalHandler(int sig)
-{
- signals_fired[sig] = 1;
- signal_received = 1;
-}
-
-
#if defined(Q_OS_INTEGRITY) || defined(Q_OS_VXWORKS)
static void initThreadPipeFD(int fd)
{
@@ -185,18 +171,6 @@ int QEventDispatcherUNIXPrivate::doSelect(QEventLoop::ProcessEventsFlags flags,
int nsel;
do {
- if (mainThread) {
- while (signal_received) {
- signal_received = 0;
- for (int i = 0; i < NSIG; ++i) {
- if (signals_fired[i]) {
- signals_fired[i] = 0;
- emit QCoreApplication::instance()->unixSignal(i, QCoreApplication::QPrivateSignal());
- }
- }
- }
- }
-
// Process timers and socket notifiers - the common UNIX stuff
int highest = 0;
if (! (flags & QEventLoop::ExcludeSocketNotifiers) && (sn_highest >= 0)) {
@@ -671,23 +645,4 @@ void QEventDispatcherUNIX::interrupt()
void QEventDispatcherUNIX::flush()
{ }
-
-
-/*!
- \internal
-*/
-void QCoreApplication::watchUnixSignal(int sig, bool watch)
-{
- if (sig < NSIG) {
- struct sigaction sa;
- sigemptyset(&(sa.sa_mask));
- sa.sa_flags = 0;
- if (watch)
- sa.sa_handler = signalHandler;
- else
- sa.sa_handler = SIG_DFL;
- sigaction(sig, &sa, 0);
- }
-}
-
QT_END_NAMESPACE