mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kded: do not set custom signals handler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fcee5ed25f
commit
6c007d6851
1 changed files with 0 additions and 18 deletions
|
@ -22,7 +22,6 @@
|
|||
#include "kdedadaptor.h"
|
||||
#include "kdedmodule.h"
|
||||
|
||||
#include <kcrash.h>
|
||||
#include <kdeversion.h>
|
||||
#include <kapplication.h>
|
||||
#include <kcmdlineargs.h>
|
||||
|
@ -36,18 +35,12 @@
|
|||
#include <kstandarddirs.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <kde_file.h>
|
||||
#include "klauncher_iface.h"
|
||||
|
||||
#include <QProcess>
|
||||
#include <QHostInfo>
|
||||
#include <QDBusReply>
|
||||
#include <QDBusConnectionInterface>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef Q_WS_X11
|
||||
#include <qx11info_x11.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
@ -596,14 +589,6 @@ void Kded::unregisterWindowId(qlonglong windowId, const QString &sender)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
static void sighandler(int /*sig*/)
|
||||
{
|
||||
if (qApp) {
|
||||
qApp->quit();
|
||||
}
|
||||
}
|
||||
|
||||
KHostnameD::KHostnameD(QObject *parent, int pollInterval)
|
||||
: QObject(parent)
|
||||
{
|
||||
|
@ -659,9 +644,6 @@ int main(int argc, char *argv[])
|
|||
app.setQuitOnLastWindowClosed(false);
|
||||
app.disableSessionManagement();
|
||||
|
||||
KDE_signal(SIGTERM, sighandler);
|
||||
KDE_signal(SIGHUP, sighandler);
|
||||
|
||||
QDBusConnection session = QDBusConnection::sessionBus();
|
||||
if (!session.isConnected()) {
|
||||
kWarning() << "No DBUS session-bus found. Check if you have started the DBUS server.";
|
||||
|
|
Loading…
Add table
Reference in a new issue