summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add MODULE_VERSION to .qmake.conf for 5.1 buildsHEADmasterChris Craig2013-08-121-1/+3
| | | | | Change-Id: I7518db2a88c9ba08b2e10f5887d2091fb90971b5 Reviewed-by: Sergio Ahumada <[email protected]>
* Fixed licensesTeemu Kaukoranta2013-05-23100-386/+1186
| | | | | | | | | 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-11100-2355/+1739
| | | | | Change-Id: I4259ecf3c599ec0cd1515c1b8768ec9138d54f3e Reviewed-by: Chris Craig <[email protected]>
* Rename files and classes to begin with [Qq]Chris Craig2013-03-08108-2430/+2470
| | | | | Change-Id: I68b75ef640f96671b6b8a9a169056c31e8d47443 Reviewed-by: Chris Craig <[email protected]>
* Build and test fixes for released Qt 5.0Chris Craig2013-03-0898-111/+66
| | | | | Change-Id: I9ab9c56444e926d298aadfedc9913f2394837083 Reviewed-by: Chris Craig <[email protected]>
* handle naming changes in qtjsonstreamChris Craig2013-03-0810-37/+40
| | | | | Change-Id: Icc471d82fd2b8e3a307e848e8d14389d0427f984 Reviewed-by: Chris Craig <[email protected]>
* Updated to work with BionicAndrew Christian2012-07-1112-23/+41
| | | | | 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-114-0/+4
| | | | | | | | 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-252-3/+33
| | | | | 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-125-1/+156
| | | | | | 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-2914-43/+120
| | | | | Change-Id: I35a1b425c3bf28d573a4f901ed916db110bc5152 Reviewed-by: Chris Craig <[email protected]>
* Added IO IdleDelegateAndrew Christian2012-03-286-0/+487
| | | | | Change-Id: Id09f15c203ce0853b4d9a7d8d2d2588a2627a877 Reviewed-by: Chris Craig <[email protected]>
* Updated a few compiler warnings and forklauncher docAndrew Christian2012-03-266-8/+78
| | | | | Change-Id: I74aa4d388aa8684868c16e600e61e2ac20a552e5 Reviewed-by: Chris Craig <[email protected]>
* Update remote processes to support idle and memory restrictedAndrew Christian2012-03-2635-144/+942
| | | | | | | | | | | | | | | | | | | | | | | * 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-2218-136/+396
| | | | | | | | | | | | | | * 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-224-0/+141
| | | | | | Change-Id: I95dd813cdcee26e1ce654cc4fd49bbe63697c5fc Reviewed-by: Lasse Holmstedt <[email protected]> Reviewed-by: Chris Craig <[email protected]>
* Updated idle delegate classes and testsAndrew Christian2012-03-218-41/+145
| | | | | | | | | * 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-2117-77/+1040
| | | | | | | | | | | | | | | | | | | | | | * 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 doc for macro fileAndrew Christian2012-03-193-1/+16
| | | | | Change-Id: Ie20a53e99ddbfc284931e91994ed106eb8ea4606 Reviewed-by: Chris Craig <[email protected]>
* rename declarative to qmlLars Knoll2012-03-192-2/+2
| | | | | | | Follow up after the Qml renaming Change-Id: Ida4862a3925a7eb84b152d75749cb777ab829fa3 Reviewed-by: Andrew Christian <[email protected]>
* Updated documentationAndrew Christian2012-03-1610-63/+228
| | | | | 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]>
* .gitignore updateChris Craig2012-03-081-0/+1
| | | | | Change-Id: I53b8fa36c5e659a50949fd50d62098ee48d8d044 Reviewed-by: Andrew Christian <[email protected]>
* declarative -> qml renamingChris Craig2012-03-0816-142/+142
| | | | | 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]>
* Renamed main files to be less confusingAndrew Christian2012-03-0614-9/+11
| | | | | Change-Id: I4144bb186cedf03e8a2f3d30eb1893b0b4a58c1f 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-0614-4/+829
| | | | | | | | | | | | | | * 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]>
* Updated schema check to match new JsonStream APIAndrew Christian2012-03-061-6/+8
| | | | | Change-Id: I9800b5f40e7e19bfa5adadb501bd2f98ab48d865 Reviewed-by: Chris Craig <[email protected]>
* Fix build for testLasse Holmstedt2012-03-061-1/+1
| | | | | | Change-Id: Ib544ddab1fde924e9e6e80f1356d7e2316b3c67d Reviewed-by: Juha Lintula Reviewed-by: Matthias Ettrich <[email protected]>
* Update prelaunch to copy processinfo record.Andrew Christian2012-03-055-22/+111
| | | | | | | | | * 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-023-30/+76
| | | | | | | Otherwise you must subclass it in order to create it in QML. Change-Id: Idbf78477518f366def7d3aadd56ef14734059db2 Reviewed-by: Matthias Ettrich <[email protected]>
* Added compatibility for older qdocAndrew Christian2012-02-292-2/+5
| | | | | Change-Id: I6468bd222b1919ea4f309372c625beb1f1e3e517 Reviewed-by: Chris Craig <[email protected]>