summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fixed licensesTeemu Kaukoranta2013-05-2384-322/+994
| | | | | | | | | Updated licenses using replace-licenses.zsh from mkdist repo. Possible copyright and contact changes will come later. Change-Id: I5ea5f85b538e5e4304fe0336cb4de1932265fda9 Reviewed-by: Janne Anttila <[email protected]> Reviewed-by: Sergio Ahumada <[email protected]>
* Change copyright to Digia.Chris Craig2013-03-1184-1969/+1449
| | | | | Change-Id: I4259ecf3c599ec0cd1515c1b8768ec9138d54f3e Reviewed-by: Chris Craig <[email protected]>
* Rename files and classes to begin with [Qq]Chris Craig2013-03-0896-2110/+3055
| | | | | Change-Id: I68b75ef640f96671b6b8a9a169056c31e8d47443 Reviewed-by: Chris Craig <[email protected]>
* Build and test fixes for released Qt 5.0Chris Craig2013-03-0885-49/+41
| | | | | Change-Id: I9ab9c56444e926d298aadfedc9913f2394837083 Reviewed-by: Chris Craig <[email protected]>
* handle naming changes in qtjsonstreamChris Craig2013-03-086-20/+18
| | | | | Change-Id: Icc471d82fd2b8e3a307e848e8d14389d0427f984 Reviewed-by: Chris Craig <[email protected]>
* Updated to work with BionicAndrew Christian2012-07-1110-23/+34
| | | | | Change-Id: Ied9ff13e8a467f9a7af6e9406518acdbba3474ec Reviewed-by: Chris Craig <[email protected]>
* Remove ProcessInfoTemplate objectLasse Holmstedt2012-06-134-689/+2
| | | | | | | | Taking the string out of a QQmlScriptString object is deprecated and will be removed from the public API. Change-Id: I5e02b5b79514deea2369c6e732090d6bdfc30643 Reviewed-by: Roberto Raggi <[email protected]>
* GCC 4.7 compilation fixesJani Uusi-Rantala2012-06-113-0/+3
| | | | | | | | Many of the standard library includes have removed unistd.h. See http://gcc.gnu.org/gcc-4.7/porting_to.html for more info. Change-Id: I572f7705a73fb506f9fa5a498b1d4c9d9581af86 Reviewed-by: Andrew Christian <[email protected]>
* Security enablersmae2012-06-056-14/+74
| | | | | | | | 1. fix umask handling to be similar to uid/gid 2. add addition property "dropCapabilities" Change-Id: I9ac7baece5f7c8b6c736dfd79bff6fab6d5b4f7a Reviewed-by: Lasse Holmstedt <[email protected]>
* Decode base64 in LauncherClientChris Craig2012-05-301-1/+1
| | | | | | | | An earlier change caused data written from RemoteProcessBackend to be base64 encoded, so it needs to be decoded in LauncherClient. Change-Id: I33a7fc333ad36f68633662d382c352a16b315da8 Reviewed-by: Andrew Christian <[email protected]>
* Support umaskmae2012-05-306-6/+42
| | | | | | | | We want to be able to define the umask in policy code Change-Id: I4ad3badd294e7cbf21b91626c4fa205d625dc294 Reviewed-by: Lasse Holmstedt <[email protected]>
* Fix crash on exitmae2012-05-221-6/+8
| | | | | | | | if m_index is -1 (the default), the call to Prefork::at() will run into an ASSERT. Change-Id: Ic2606fe3dab5b589b47d79bb30a0cd654d522a0e Reviewed-by: Nikolai Kosjar <[email protected]>
* Fix waitchildren abort conditionmae2012-05-211-1/+1
| | | | | | | | | The original code was right of course. pid -1 and errno ECHILD is plausible condition that we should not abort on. The pid 0 case comes in addition. Change-Id: I9dca715b1d59e2d78e4d32b4aad2fd8a06af488a Reviewed-by: Lasse Holmstedt <[email protected]>
* Minor fixes to fork-launchingmae2012-05-142-13/+10
| | | | | | | | | | | 1. pass correct command line arguments 2. abort waitForChildren when waitpit returns 0 (normal case under Linux) 3. avoid writing empty json objects to the pipes 4. encode binary data as base64 Change-Id: I6b2076215d6d62e121a9e75a25acbb139be37598 Reviewed-by: Andrew Christian <[email protected]>
* Added some threadcount reading for Mac OSAndrew Christian2012-04-251-0/+28
| | | | | Change-Id: I445d430e6f78475b923fa08001f9bb322f87f854 Reviewed-by: Chris Craig <[email protected]>
* Do not destroy prelaunch runtimes on disableMartin Zielinski2012-04-121-7/+0
| | | | | | | | | We need to be able to disable prelaunched runtimes without destroying the created ones. Destruction of exisiting runtimes happen when memory is restricted. Change-Id: Ia366b872951ff0c783e741ab5f081d5970d45a7d Reviewed-by: Chris Craig <[email protected]>
* Added a test to verify that thread priorities are being setAndrew Christian2012-04-122-0/+46
| | | | | | Change-Id: I8d951852a7898c974a11b11a97011983ef0694c3 Reviewed-by: Martin Zielinski <[email protected]> Reviewed-by: Chris Craig <[email protected]>
* Priority changes are applied to childprocesses as wellMartin Zielinski2012-04-113-13/+26
| | | | | | | | | Changes to the priority of a unixprocess does apply the priority also to all childprocesses and threads. Change-Id: Iaff1a5f7ef0742268d527e6b6800bbd47c39146c Reviewed-by: Lasse Holmstedt <[email protected]> Reviewed-by: Chris Craig <[email protected]>
* Always set parent death signal to SIGTERM under LinuxAndrew Christian2012-03-303-1/+16
| | | | | | | Change-Id: Ib6b625893159c55cfb6d43a6e6e963abc85a0322 Reviewed-by: Lasse Holmstedt <[email protected]> Reviewed-by: Alexey Shilov <[email protected]> Reviewed-by: Chris Craig <[email protected]>
* Updated setting UID and GID values in child processesAndrew Christian2012-03-301-12/+84
| | | | | | | | | * Clarified semantics for what the system does if UID is set, GID is set, or both UID and GID are set. * Added error checking code Change-Id: Ifb6a6d9b4ef30cd4ae5135308880b3d5910c0167 Reviewed-by: Lasse Holmstedt <[email protected]>
* Added internalProcessError signalAndrew Christian2012-03-2913-4/+89
| | | | | Change-Id: I35a1b425c3bf28d573a4f901ed916db110bc5152 Reviewed-by: Chris Craig <[email protected]>
* Added IO IdleDelegateAndrew Christian2012-03-283-0/+382
| | | | | Change-Id: Id09f15c203ce0853b4d9a7d8d2d2588a2627a877 Reviewed-by: Chris Craig <[email protected]>
* Updated a few compiler warnings and forklauncher docAndrew Christian2012-03-264-7/+73
| | | | | Change-Id: I74aa4d388aa8684868c16e600e61e2ac20a552e5 Reviewed-by: Chris Craig <[email protected]>
* Update remote processes to support idle and memory restrictedAndrew Christian2012-03-2624-119/+472
| | | | | | | | | | | | | | | | | | | | | | | * Pass Idle CPU requests over remote procotol * Pass Idle CPU grants over remote protocol * Pass Memory Restricted messages over remote protocol * Pass list of internal processes over remote protocol * Update test cases for the above for PipeLauncher and SocketLauncher. * Verify that a PipeLauncher or SocketLauncher can support prelaunched processes correctly. * Added appropriate schema for remote protocol including Halt: Stop the remote client IdleCpuAvailable: grant idle cpu to a remote factory Memory: configure memoryRestricted property IdleCpuRequest: Event from remote process to request idle cpu InternalProcesses: Event from remote process listing all internal processes. * Updated documentation with more accurate pictures of ProcessBackendFactory and ProcessBackendManager hierarchies. Change-Id: I34905049844b80e4018042d67a1a5ed3137fa29a Reviewed-by: Chris Craig <[email protected]>
* Fix property typeLasse Holmstedt2012-03-241-1/+1
| | | | | Change-Id: I43cafb1dac4e202df6899b985802088fd2444dc4 Reviewed-by: Matthias Ettrich <[email protected]>
* Updated declarative interfacesAndrew Christian2012-03-227-57/+376
| | | | | | | | | | | | | | * Fixed up PipeProcessBackendFactory to support being instantiated by declarative. * Added a DeclarativeProcessManager::registerTypes() function to call qmlRegisterType() for all usable classes. * Updated registered QML class names for items in declarative to follow the "PmNAME" convention (because the QML type name can't be the same as the C++ type name) * Updated documentation for declarative types Change-Id: I587689752cb69c7280db67bbc20c1a91b0c6722a Reviewed-by: Chris Craig <[email protected]>
* Exposed IdleDelegates to ProcessManager and added declarative test caseAndrew Christian2012-03-222-0/+36
| | | | | | Change-Id: I95dd813cdcee26e1ce654cc4fd49bbe63697c5fc Reviewed-by: Lasse Holmstedt <[email protected]> Reviewed-by: Chris Craig <[email protected]>
* Updated idle delegate classes and testsAndrew Christian2012-03-217-38/+93
| | | | | | | | | * Added enabled property to delegates to universally turn them on and off * Changed the default IdleDelegate to CpuIdleDelegate * Added test case for enabling/disabling idle delegate Change-Id: I6683aa19821f84afea25e8fd97c284863791e7ed Reviewed-by: Chris Craig <[email protected]>
* Added idle CPU resource allocation for prelaunchingAndrew Christian2012-03-2113-75/+931
| | | | | | | | | | | | | | | | | | | | | | * ProcessBackendFactories indicate a need for extra cycles by setting idleCpuRequest property. * PrelaunchBackendFactory requests this whenever it wants to prelaunch a backend. * ProcessBackendManager aggregates idleCpuRequest properties and passes combined request to IdleDelegate. * IdleDelegate periodically sends idleCpuAvailable() signal to first available factory with outstanding request. * The default IdleDelegate is set to TimeoutIdleDelegate which distributes idleCpuAvailable() signals at regular intervals. This is close to the old prelaunch logic, but now centralized and replaceable. * The CpuIdleDelegate measures system load (Linux & Mac) and distributes idleCpuAvailable() signals when the system load falls below a set level Change-Id: I1ce273b2797ae0f0477dd80ae7bc2c8e3496901e Reviewed-by: Andrew Christian <[email protected]>
* Updated documentationAndrew Christian2012-03-166-41/+206
| | | | | Change-Id: I124e5e9953a308b917134789866d8e69312d6ba1 Reviewed-by: Chris Craig <[email protected]>
* don't schedule prelaunched instance while one existsMartin Aumüller2012-03-151-0/+9
| | | | | | | | | | | - avoid failed assertions (m_prelaunch == 0) by scheduling starting a new instance only if there does not exist one - also make sure current instance is deleted before creating one for a different runtime Change-Id: Iec375d43d4d25508f5cdf433dec392d4196e53b3 Reviewed-by: Lasse Holmstedt <[email protected]> Reviewed-by: Chris Craig <[email protected]>
* Revert "Cpu polling for prelaunch"Andrew Christian2012-03-095-290/+60
| | | | | | | | | This reverts commit 9181b78247567f1c21b9f85a9eb149133425941a Inappropriate implementation. Having two PrelaunchProcessBackendFactories will result in extraneous polling. Autotests now only succeed if you run on a machine with low CPU load. Autotests on Macintosh platform simply fail. Change-Id: I3e7061e8fbf89bd3f6a2907a406ca1fbfbc88e3c Reviewed-by: Chris Craig <[email protected]>
* Cpu polling for prelaunchAlexey Shilov2012-03-095-60/+290
| | | | | | | Now we prelaunch runtimes only if cpu load is low enough. Change-Id: Ie050fad9f75d2e6cb02a6dbc09b24841b539f41e Reviewed-by: Lasse Holmstedt <[email protected]>
* declarative -> qml renamingChris Craig2012-03-0811-117/+117
| | | | | Change-Id: I0612bc25e5d40dde12aa6f09158e30b0a94cd6af Reviewed-by: Andrew Christian <[email protected]>
* Added missing include fileAndrew Christian2012-03-081-0/+1
| | | | | Change-Id: If29f31cdb8bf696108788f5b179e404d303ebfb5 Reviewed-by: Chris Craig <[email protected]>
* Use JsonPipe functionality from QJsonStream libraryAndrew Christian2012-03-065-157/+27
| | | | | | | | The JsonPipe class from QJsonStream abstracts sending and receiving JSON-formatted messages over file descriptors. Change-Id: I7ebde3dc1f176d41e492f1bdf34c6ae0e0cf8fa5 Reviewed-by: Chris Craig <[email protected]>
* Added prefork library and factoryAndrew Christian2012-03-066-2/+622
| | | | | | | | | | | | | | * Prefork library parses command line arguments and creates appropriate master and child processes connected by pipes. * PreforkProcessBackendFactory retrieves information about child processes from prefork library and exposes those children as remote process manager objects. * Linux test case added to start a master and child object using prefork library and run all standard tests. Change-Id: Ic76da3eb8237744dd075f55db80f46f35550c73f Reviewed-by: Chris Craig <[email protected]>
* Update prelaunch to copy processinfo record.Andrew Christian2012-03-052-6/+45
| | | | | | | | | * Added declarative test cases for Prelaunch factory * Copy ProcessInfo record into prelaunch factory to avoid memory management issues Change-Id: I3303286f34c7ee9c491a82726e4e4b50892625e4 Reviewed-by: Lasse Holmstedt <[email protected]>
* Add method to access the prelaunched backend from subclassesLasse Holmstedt2012-03-022-4/+14
| | | | | Change-Id: I0e88adff69718419598a7547f36aee3769833e53 Reviewed-by: Matthias Ettrich <[email protected]>
* Add hasPrelaunchedProcess() to PrelaunchProcesBackendFactoryLasse Holmstedt2012-03-022-1/+11
| | | | | Change-Id: I466e79d5794a9e4db3ec15f0449d80a6a7357fe2 Reviewed-by: Matthias Ettrich <[email protected]>
* Add prelaunchEnabled property to PrelaunchProcessBackendFactoryLasse Holmstedt2012-03-022-7/+47
| | | | | | | | | When true, the factory does prelaunching. Otherwise, it is still able to launch processes, but won't attempt to create any additional prelaunched runtimes. Change-Id: Iab8aa1367f109e64847b68af0c856d67287aa9aa Reviewed-by: Matthias Ettrich <[email protected]>
* Change the PrelaunchProcessBackendFactory constructor to defaultLasse Holmstedt2012-03-022-15/+55
| | | | | | | Otherwise you must subclass it in order to create it in QML. Change-Id: Idbf78477518f366def7d3aadd56ef14734059db2 Reviewed-by: Matthias Ettrich <[email protected]>
* add ProcessInfoTemplate::containsChris Craig2012-02-292-0/+10
| | | | | Change-Id: Ieebba581070fe1996e872e32bf9a7e6783376606 Reviewed-by: Lasse Holmstedt <[email protected]>
* processinfo template should use utf8Chris Craig2012-02-291-1/+1
| | | | | Change-Id: I564279a78162c2b63b40e7009ea3034f929bb275 Reviewed-by: Lasse Holmstedt <[email protected]>
* Removed dependencies on QtGui where possibleAndrew Christian2012-02-291-0/+1
| | | | | Change-Id: I57f552da2f45069fab73782e7229af484cd2636b Reviewed-by: Chris Craig <[email protected]>
* Fix test cases to always run under LinuxAndrew Christian2012-02-291-1/+1
| | | | | Change-Id: I0f536fc6cae58461ffb1818b044512349a89bba2 Reviewed-by: Chris Craig <[email protected]>
* Move process group killing to common locationAndrew Christian2012-02-284-20/+26
| | | | | Change-Id: Icff9cd4073684ba7cc314b69b3efc6c0bf7cff99 Reviewed-by: Chris Craig <[email protected]>
* Added forklauncher code and test cases.Andrew Christian2012-02-277-11/+729
| | | | | Change-Id: I2e21b7635169464e229a36d02cc728a5f5bab443 Reviewed-by: Chris Craig <[email protected]>
* Added DeclarativeRewriteDelegateAndrew Christian2012-02-213-0/+195
| | | | | Change-Id: I42cdfcf1b32739ff483c1379cada7df394e57fa1 Reviewed-by: Chris Craig <[email protected]>
* Added DeclarativeMatchDelegateAndrew Christian2012-02-214-21/+246
| | | | | | | | * DeclarativeMatchDelegate allows matching logic to be specified in Javascript. * Cleaned up some of the QML documentation Change-Id: I1d9f246528a60656b713fcdb39d08f6f8d6904a0 Reviewed-by: Chris Craig <[email protected]>