Changeset 72077 in webkit
- Timestamp:
- Nov 16, 2010 3:50:02 AM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r72074 r72077 1 2010-11-15 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Kill the web process if the UI process dies 6 7 Connect UI (parent) process death signal to SIGKILL of the web 8 process (child). This ensures that there's no stale web processes 9 after the UI process has crashed. 10 11 Original patch by Kimmo Kinnunen. 12 13 * UIProcess/Launcher/qt/ProcessLauncherQt.cpp: 14 (WebKit::QtWebProcess::QtWebProcess): 15 (WebKit::QtWebProcess::setupChildProcess): 16 (WebKit::ProcessLauncherHelper::launch): 17 1 18 2010-11-16 Simon Hausmann <simon.hausmann@nokia.com> 2 19 -
trunk/WebKit2/UIProcess/Launcher/qt/ProcessLauncherQt.cpp
r71409 r72077 48 48 #include <sys/resource.h> 49 49 #include <unistd.h> 50 #if defined Q_OS_UNIX 51 #include <sys/prctl.h> 52 #include <signal.h> 53 #endif 50 54 51 55 using namespace WebCore; … … 68 72 }; 69 73 74 class QtWebProcess : public QProcess 75 { 76 Q_OBJECT 77 public: 78 QtWebProcess(QObject* parent = 0) 79 : QProcess(parent) 80 {} 81 82 protected: 83 virtual void setupChildProcess(); 84 }; 85 86 void QtWebProcess::setupChildProcess() 87 { 88 #if defined Q_OS_UNIX 89 prctl(PR_SET_PDEATHSIG, SIGKILL); 90 #endif 91 } 92 70 93 void ProcessLauncherHelper::launch(WebKit::ProcessLauncher* launcher) 71 94 { … … 80 103 QString program(applicationPath.arg(m_server.serverName())); 81 104 82 QProcess* webProcess = new Q Process();105 QProcess* webProcess = new QtWebProcess(); 83 106 webProcess->setProcessChannelMode(QProcess::ForwardedChannels); 84 107 webProcess->start(program);
Note: See TracChangeset
for help on using the changeset viewer.