![]() |
cutelyst 4.8.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
|

Public Member Functions | |
| UnixFork (int process, int threads, bool setupSignals, QObject *parent=nullptr) | |
| virtual bool | continueMaster (int *exit=nullptr) override |
| bool | createProcess (bool respawn) |
| void | decreaseWorkerRespawn () |
| virtual int | exec (bool lazy, bool master) override |
| void | handleSigChld () |
| void | handleSigHup () |
| void | handleSigInt () |
| void | handleSigTerm () |
| int | internalExec () |
| virtual void | killChild () override |
| void | killChild (qint64 pid) |
| virtual void | restart () override |
| virtual void | terminateChild () override |
| void | terminateChild (qint64 pid) |
Public Member Functions inherited from AbstractFork | |
| AbstractFork (QObject *parent=nullptr) | |
| virtual bool | continueMaster (int *exit=nullptr)=0 |
| virtual int | exec (bool lazy, bool master)=0 |
| void | installTouchReload () |
| virtual void | killChild ()=0 |
| void | removeTouchReload () |
| virtual void | restart ()=0 |
| void | setTouchReload (const QStringList &paths) |
| virtual void | terminateChild ()=0 |
Static Public Member Functions | |
| static void | chownSocket (const QString &filename, const QString &uidGid) |
| static int | idealProcessCount () |
| static int | idealThreadCount () |
| static bool | setGidUid (const QString &gid, const QString &uid, bool noInitgroups) |
| static void | setSched (Cutelyst::Server *wsgi, int workerId, int workerCore) |
| static bool | setUmask (const QByteArray &valueStr) |
| static void | stopWSGI (const QString &pidfile) |
Additional Inherited Members | |
Signals inherited from AbstractFork | |
| void | forked (int workerId) |
| void | shutdown () |
Protected Member Functions inherited from AbstractFork | |
| void | directoryChanged (const QString &path) |
| void | fileChanged (const QString &path) |
Definition at line 27 of file unixfork.h.
|
explicit |
Definition at line 49 of file unixfork.cpp.
|
override |
Definition at line 59 of file unixfork.cpp.
|
static |
Definition at line 335 of file unixfork.cpp.
|
overridevirtual |
When in MASTER mode this method is called, it should return true if Server::exec() should continue setting up the listening socked or exit with exit code
Implements AbstractFork.
Definition at line 66 of file unixfork.cpp.
| bool UnixFork::createProcess | ( | bool | respawn | ) |
Definition at line 131 of file unixfork.cpp.
| void UnixFork::decreaseWorkerRespawn | ( | ) |
Definition at line 155 of file unixfork.cpp.
|
overridevirtual |
Start event loop, it's useful for doing trickery when forking
Implements AbstractFork.
Definition at line 72 of file unixfork.cpp.
| void UnixFork::handleSigChld | ( | ) |
Definition at line 487 of file unixfork.cpp.
| void UnixFork::handleSigHup | ( | ) |
Definition at line 441 of file unixfork.cpp.
| void UnixFork::handleSigInt | ( | ) |
Definition at line 456 of file unixfork.cpp.
| void UnixFork::handleSigTerm | ( | ) |
Definition at line 448 of file unixfork.cpp.
|
static |
Definition at line 419 of file unixfork.cpp.
|
static |
Definition at line 430 of file unixfork.cpp.
| int UnixFork::internalExec | ( | ) |
Definition at line 111 of file unixfork.cpp.
|
overridevirtual |
Called when child process should be nicely killed
Implements AbstractFork.
Definition at line 172 of file unixfork.cpp.
References killChild().
Referenced by killChild().
| void UnixFork::killChild | ( | qint64 | pid | ) |
Definition at line 180 of file unixfork.cpp.
|
overridevirtual |
Called to restart process when any of the watched paths changes
Implements AbstractFork.
Definition at line 99 of file unixfork.cpp.
References terminateChild().
|
static |
Definition at line 268 of file unixfork.cpp.
|
static |
Definition at line 550 of file unixfork.cpp.
|
static |
Definition at line 219 of file unixfork.cpp.
|
static |
Definition at line 200 of file unixfork.cpp.
|
overridevirtual |
Called when child process should be brutaly killed
Implements AbstractFork.
Definition at line 186 of file unixfork.cpp.
References terminateChild().
Referenced by restart(), and terminateChild().
| void UnixFork::terminateChild | ( | qint64 | pid | ) |
Definition at line 194 of file unixfork.cpp.