summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that process title code isn't optimized out5.15Bernd Weimer2023-05-151-1/+1
| | | | | | | | | | Some compilers optimzed out the ProcessTitleInitialize function in the .init_array section, since it isn't called explicitly. Change-Id: Ifd1fbdf9afd9e991a28590aeab7068223f5a132a Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit 77abca601078e643550bb662d4d7e61b0647beed) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix some more obvious issues in GPU readerBernd Weimer2023-05-153-27/+20
| | | | | | | | | | | | Reference count has been fixed to properly terminate underlying GPU memory tracing process, no warning is printed any more when the process finishes and parsing intel_gpu_top output has been adapted to pick the actual load value (subject to future changes in the tool). Change-Id: I7f02e7b48b826da2d6b10f1d67470b560a3c7c21 Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit 880837be13cec8784a771b0b32ebb30be6da676f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Force our session bus to be a file-based socket on Linux. (part 3)Robert Griebl2023-05-151-2/+2
| | | | | | | | | | Manually constructing a socket path on macOS and legacy Linux was wrong and prevent the start of the dbus-daemon: /tmpam/... instead of /tmp/am/... Change-Id: I101f74b50ba0477cbf49b59bfc76982c60dc7e0b Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 7381f5d848975729c87d66d91a53dfa1a28bb44a)
* Force our session bus to be a file-based socket on Linux. (part 2)Robert Griebl2023-05-151-1/+26
| | | | | | | | | Detect if we are running against an old D-Bus library where the "unix:dir=..." syntax is not supported. Change-Id: Icc4ac38868e0bc2ea2675d86384c4ff33aa11cdb Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit a2aed270244c872c58dfdd945d1e5452ab23d057)
* Force our session bus to be a file-based socket on LinuxRobert Griebl2023-05-151-1/+6
| | | | | | | | | | | Different versions of libdbus handle the default listen address (unix:tmpdir=/tmp) differently: you may get a file-based socket (Debian/sid), but you also may get an abstract socket (Ubuntu 22.04). Change-Id: I703679e5f9b0315027a4b2cabd5db1800870ab00 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 82b6a97147ff3e921998fcec269b79c842ee432f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Also expose applications in taskRequestingInstallationAcknowledgeRobert Griebl2023-05-154-5/+38
| | | | | | | | | | Since switching to the new multiple-apps-per-package architecture, the actual infos about the apps in the package were not exposed via the requesting-acknowledge signal anymore. Change-Id: Id535c5d8710998ce26043ec8e56cd1881961628d Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit a027b61a64160ca5fa1c3bc8d135a38c75a534a7)
* Make it possible to specify directories to read config files fromRobert Griebl2023-03-273-2/+16
| | | | | | | | | | This extends the existing -c/--config-file option to also accept directories, effectively expanding the argument to all *.yaml files in the given directory. Change-Id: I83f197e8f67ba363bf27b0f511c7821402bb7033 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 6cc5230fd783802159aa3ca94c74b7ee1b27203a)
* yaml: missing values are actually null/~, not empty stringsRobert Griebl2023-03-223-70/+77
| | | | | | Change-Id: I6ca98e219bf4c3de9a1eaaae5ddeb7e7cfa27107 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 0ae6d0a3637075fe8005361177eae3142eee0a77)
* appman-controller: detect broken D-Bus connections and quit with errorRobert Griebl2023-03-031-39/+107
| | | | | | | | | | | | | | | | | | | | | In case the AM crashed or the bus died during an install-package command, the appman-controller would have waited for a taskFail / taskFinished signal infinitely. We now detect a D-Bus service owner change (the AM crashed) and a disconnected D-Bus (the bus died). Even though the D-Bus daemon dying sounds unlikely, it is the norm when running the AM with --dbus=auto (the default). If the AM crashes (or gets terminated by an IDE), the private dbus-daemon just quits. This makes the controller much more suitable for scripting. Also fixed a bunch of clang/clazy warnings in this file. Change-Id: I01a3772fd8773d707984a07d38cbce1d7ab36c94 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit ff5f0d9c4d14042eb020a8ba5cb9ee7e51195a65) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix race condition when un-installing running appsRobert Griebl2023-02-071-7/+14
| | | | | | | | | | | | | It is very unlikely, but there is a race condition between the installer thread and the main thread regarding the life time of the Application object that is currently being uninstalled. We have a clear backtrace from a production system pointing to this error, but we cannot reproduce this problem in an unit test. Change-Id: I290582f270455c64e8653813c5e9d47c294f60e1 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 3d36fe9fbdd18f635de8c3f01b3067d37e3014d7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Handle missing wayland display gracefullyBernd Weimer2023-01-311-0/+5
| | | | | | | | | | | | | When the wayland socket didn't exist, the appman-launcher-qml would terminate with an abort. This could happen for instance inside a container when the socket file was not mapped. This has been mitigated to only show a critical error message in the am.runtime.qml logging category and exit gracefully (with an error return code). Change-Id: Id29d0e79e260726d1ffd9b940eac806b483b8a19 Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit 61e91284ade4ba7548e84e6550934aff5bcf1ca2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add a note about building inside QtCreatorRobert Griebl2022-10-181-0/+4
| | | | | | Change-Id: Ic84e3c14ef1f645095b0428c0da54215abdb1bbc Fixes: QTCREATORBUG-27882 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Fix broken QtWaylandCompositor dependencyRobert Griebl2022-10-181-3/+0
| | | | | | Change-Id: Ie6e3af20605135ba40ca4f59ac648d08e7c2f2fa Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit afe24a0d5f17fc267ff81fbd729351b6209c74c0)
* Fix a potential crash when trying to start applicationsRobert Griebl2022-10-122-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | If you were calling startApplication() and the runtime failed to execute the app's binary in a container, it would call deleteLater() on the failed runtime object. The problem was that if you immediately called startApplication() once more in the same event loop iteration, the Application object still had the to-be-deleted runtime attached, which in turn prevents the allocation of a new container, so the AM tried to start the application again, but this time with "container" set to nullptr. The actual fix is to NOT call deleteLater, but directly delete the runtime object. In addition, when startApplication() is called for an application, we have to make sure that the application's runtime object can not be in the state NotRunning: the AM could still end up in this state, if a Container plugin is either not reporting shutdown correctly, or if the container's "ready" state is delayed. Change-Id: Ied1baec8c90d4e0a980c296cbc7cd87b12629524 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 5ae261864728678df3dd72f156efc6688dcf695d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix a template compile error with Debian's gcc 12.1Robert Griebl2022-10-121-2/+2
| | | | | | | Change-Id: I29142dccb62f4f9689a13f0dd5d9b1d4f9f81e05 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 95cec17f8da3972adab36ca8bfb10bcf755101e3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add explicit include for std::abort (part 2)v5.15.10_QtAS-ltsRobert Griebl2022-08-163-0/+3
| | | | | | | Change-Id: I4d6bf4d4d29133202c0b7dfd088d09cf2a64d1c0 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 50255bf75103520c288f7ed31d2eddc22bcb18a1) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Add explicit include for std::abortBernd Weimer2022-08-121-0/+2
| | | | | | | Change-Id: Ia71cf0b596b4e90d38fba0ca5d1c6134e96e721f Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit cb9e3ecefb5908b5a74854afcbb399b3241c1fc6) Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
* Version bump to 5.15.10Bernd Weimer2022-08-101-1/+1
| | | | | Change-Id: Ib6c40be32721c9d9ff8c22df9b82b48529874e63 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Intents: prevent a crash if a sent request is gc'ed too earlyRobert Griebl2022-08-053-4/+16
| | | | | | | | | | | Not saving the result of IntentClient.sendIntentRequest could lead to the GC deleting the IntentClientRequest before it was even delivered to the receiver, leaving a dangling pointer. Change-Id: I8972795d166fa46dd736005dd4df33b9a7ea2463 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit bb186192373c6ff796c9084f22d48b02d14886c7)
* Avoid race condition on Intent creation during app startupRobert Griebl2022-08-052-15/+19
| | | | | | | Change-Id: I159db37d55dea3a85a52117013b24611cbbb8ac4 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit ca39c6d952c6812d5fa75913432d6fc9dd4e8a81) Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* UrlHandlers have to be properly unregistered nowadaysRobert Griebl2022-07-181-0/+4
| | | | | | | Change-Id: I60637b5c782cdb38669d751991a8e1e879754906 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 18d10c730e27560eb691c2a0bae605dc4d3d226a) Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Avoid rendering fully transparent nodeBernd Weimer2022-07-141-0/+3
| | | | | | | | | | This improves performance in single-process mode, when an ApplicationManagerWindow is fully transparent. Change-Id: I87d35a76c4301b59b513bf19b4de01fb244e028e Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit 1b818ba23087fc57a4392a26f72861c9364d0ba8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Support QNX (unoffically)Bernd Weimer2022-07-0710-17/+1150
| | | | | | | | | | | | | | | | | Allow to build for QNX and run in single-process mode. There are a few limitations, e.g. filesystem mount monitoring and startup timer are not supported and there's only a rudimentary stack trace in case of a crash, etc. Since Qt Network doesn't provide a HW address it has to be passed to qmake with, e.g.: -config hardware-id=dummyHwId (this is a manual reimplementation of Ia58d09d15a781666fe788f21dfe9c7af7a2a74ef and part of I8057bc23fd0072c997c8a42539ef23a6c7a9e28a from the dev branch) Change-Id: I8852e88e5de306e495a0772fbd82db945380b57b Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Add support for managing multiple instances from appman-controllerRobert Griebl2022-06-3011-40/+140
| | | | | | | | | | | | Added an optional instance-id, which can be set via command line option or via am-config.yaml in the appman process. appman-controller also gained a new option --instance-id to address the given instance, instead of the default, unnamed one. Change-Id: I582d0ea69ed0697ee9ac7353725f93c50df05e34 Fixes: AUTOSUITE-1678 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 8f4fbe0665f7e83c89364e44711f01c4408ff59f)
* clang wants C++ attributes before a func declaration nowadaysRobert Griebl2022-06-281-1/+1
| | | | | | | Change-Id: I7a537aa4b21e499ba7ca0a1d46314dce60266bfc Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit 3da5d60c0e362504b18f9a567013504c9bdb1464) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix DBus error handling when set to "auto"Robert Griebl2022-06-132-7/+29
| | | | | | | | | | | | | | | | | | | | | Problem 1: A Qt plugin calls QDBusConnection::sessionBus() before we fork off our own, private session bus. In this case, Qt caches the old bus address and we try to register our objects on the wrong bus. -> register on our own bus explicitly. Problem 2: If "Problem 1" happened, every QML application would block for 100 * ~25sec on startup, trying to call "Introspect" on the non- existing Notification interface (on the wrong dbus). The delay loop was written for the P2P case, which doesn't block in the QDBusInterface constructor, resulting in a more reasonable 100 * 1msec timeout. -> check if the service is available at all first and also check for time-elapsed instead of trying 100 times. Change-Id: I34ade2bee2da27753eda09b6c0f3562882f40bc3 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 6ffa6c7fa98336be9edc83e06f0c9ddad3769550)
* Add a new 'ready' property to the PackageManagerRobert Griebl2022-06-133-0/+31
| | | | | | | | | | | If a project is using the new applications/installationDirMountPoint config option which might delay loading the package database, it also needs a signal to tell it when that database is in a consistent state. Change-Id: I4b250f08c6dade2c675c3b742fe663afd992c1bd Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit d7a64b2163a00330ddb8d84eb0ab6c4c8261e0e9) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Deal with OpenSSL3's changed defaults when parsing PKCS12 certificatesRobert Griebl2022-06-135-6/+49
| | | | | | | | | | | | | | | | OpenSSL3 doesn't like old certificates, but macOS doesn't like the new ones. For the cross-platform signature auto test, we need to enable handling of legacy certificates in OpenSSL3. Also fixed the process to regenerate the test signatures (for when macOS' SecurityFramework may catch up in the future) Change-Id: Ie95ebb0878e4c6c4b96ef45263575bc2135197d0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 68170feaeefef6aa9764205bbcb10249b6a4a5c1) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix autotests to work on windowsDominik Holland2022-05-175-10/+13
| | | | | | | | | | | | | The test doesn't work if debug_and_release is set for the app lib as the libs are created in subfolders in this case. Because of the special coin test setup the pro files need to be split up. The simple QML autotest doesn't need special handling on windows anymore. Change-Id: I73e0af8483438fa1ff249156d9f6e9f63eb229db Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix flaky config testDominik Holland2022-05-171-1/+0
| | | | | | | Remove the specified timeout and rely on the default timeout instead. Change-Id: I3232383877371db5961e713042b6572cfb68eff2 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Disable testing using QEMUDominik Holland2022-05-171-0/+6
| | | | | Change-Id: I9310286ec2ef16a09fe65af369c675a74fc39ee0 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Disable the Wayland watchdog when running autotestsRobert Griebl2022-05-176-5/+15
| | | | | | | | | | If tests are running into timeouts in the CI, we most of run into the Wayland timeout before, messing up the tests' results. Change-Id: I054f07ff860f77a1e8dfd6a411b049b92555dad0 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 26191b87f30dccff436736c13a62d19a665ae2a0) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Increase default timeout for the intent testDominik Holland2022-05-171-1/+1
| | | | | Change-Id: I4f6fa847dc4dd41ac82ca0c829c0f22883f714db Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Use AM_TIMEOUT_FACTOR in all tests and the intent handlingRobert Griebl2022-05-1716-137/+160
| | | | | | | | | | Also works around the problem of the single-process qml/windowitem test crashing with just slightly more than idle CPU load. Change-Id: Ie24c7565bbaa448844879f4a57f0921693db9ce8 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 5335074a0d432c98bb8ec8e62557e29b6ba1446d) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Use AM_TIMEOUT_FACTOR=6 for all tests on the CIDominik Holland2022-05-171-0/+4
| | | | | | | | | Because of different build environment used for qt5 builds, we are not able to alter the test environment and have to build in some hardcoded values for the CI. Change-Id: I2211fa738e9cbe8d1cd728c1c024f70acdfdd1bd Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Use the OPENSSL_HOME env variable for create-test-packages.shDominik Holland2022-05-171-1/+6
| | | | | Change-Id: I63856500229ccf42cf89ac9ea311e9a2d66351b4 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Don't rely on the system environment to be UTF-8 when building packagesRobert Griebl2022-05-172-9/+7
| | | | | | | | | Instead, set a well-known UTF-8 locale ourselves. Change-Id: I67e4eaa9dbadf690924b091f93cf1d61425ea451 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 5f053ea7f609a269457ff1cd75aeb924a8a0d60f) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix the QML tst_installer to run on WindowsRobert Griebl2022-05-173-14/+33
| | | | | | Change-Id: Ic6a24d2d849a3d00e4e44f83ef6410bab4aca7c2 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 5184cb19845e1b5bc25665e49e423f0dd8a25a5c)
* Fix create-test-packages.sh to work on macDominik Holland2022-05-171-2/+4
| | | | | Change-Id: I1927f2896979e94feaa8e67b20809a99a803ea0a Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Enable qml tests on coinDominik Holland2022-05-172-4/+23
| | | | | | | | | Coin uses a custom prf to detect what tests need to be executed in the test phase. To make this custom prf happy we need to adapt am-qml-testcase.prf accordingly. Change-Id: Id32f8244ebf7efecd211c94ccfeb1f411be524a8 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Really fix package removal if documentDir is not setRobert Griebl2022-03-251-1/+1
| | | | | | | | | | The fix in bc06a04dd845d039ba802f94b5eae57519ec63a8 was not correct in the package removal case. Change-Id: I65645a1895b6e5cba6dfa6bd61be1b1a638fe67a Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 074d1a70d273b72a369009a6105a7dcad2efc48b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add a new flag to allow surfaces from unknown Wayland clientsRobert Griebl2022-03-2412-9/+47
| | | | | | | | | | | | Before, this was only possible by running with the "noSecurity" flag, which disabled all security checks completely. Change-Id: I06fbd1cca414be518a19b2250b28e114687e7f93 Fixes: QTBUG-101703 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit c1fbd8b4f27d810c70fad85d0a9365aee360becb) Reviewed-by: Robert Griebl <robert.griebl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Handle an empty or invalid documentDir correctlyRobert Griebl2022-03-245-4/+17
| | | | | | | | | | | | | | | | | Not specifying the documentDir, but enabling the installer would - unexpectedly - use $PWD as documentDir. The code does now follow the documentation: if not set, no document directories will be created on package installation. Also, we now fail early if the documentDir and installationDir are sub-directories of each other, as that would lead to mayhem on PackageManager::cleanupBrokenInstallations(). Change-Id: Id8d89f82bf0d63c771f3d86a963c66681f43f195 Fixes: QTBUG-101881 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit bc06a04dd845d039ba802f94b5eae57519ec63a8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Detect and prevent installing the same package multiple times in parallelRobert Griebl2022-03-244-0/+41
| | | | | | | Change-Id: I8aa7e1f520346b6c946b0e1e122808d638ccb52c Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 7309841d99e76577758adb11c5b905004555b338) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix memory leaks in the auto testsRobert Griebl2022-03-222-13/+18
| | | | | | | | | Found by using the Linux/gcc/ASAN leak checker. Change-Id: Id9e2aae8c79b0d1ae71f90e7fbbb876ff9076def Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 4178fd06ebf3af17019b29d7010a2b81571bec91) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix memory leaks introduced by adding the PackageInfo mechanismRobert Griebl2022-03-2111-6/+42
| | | | | | | | | Found by the Linux/gcc/ASAN leak checker. Change-Id: I3c85515b994ad21b8718349baa81f9fc52a20615 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 969864e00491d262cdaf167a8d72ea5b0538bc7d) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix the userIdSeparation check on startupRobert Griebl2022-03-211-1/+1
| | | | | | | Change-Id: I7c109d378fd06bd9d3efdf8d495e2e4407ea1dd1 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 744ecc7fe73819a685531ed64e3af62f1816fc53) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Work around unused result issue in gccBernd Weimer2022-03-212-4/+7
| | | | | | | | | This fixes compilation errors even for older versions of glibc. Change-Id: I1ee1be6ad311a0ba47d8e83083bf9ad7bb43f4bf Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit f64114ea2c2c1bce04271ddc16bf331f3d3d79b4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Create extra sockets only just before the Wayland compositor is createdRobert Griebl2022-03-023-52/+83
| | | | | | | | | | Otherwise there will be a window where the socket already exists in file system, but is not adopted by the compositor yet, leading to "connection refused" errors should a client try to connect. Change-Id: Ic96c51c7e8175ab5e9ac40fc70b5f8dc97c11b71 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 9429d8e84649a4c0a262c16a2eaf394dcc90c79b)
* Avoid race condition during Unix signal handlingRobert Griebl2022-03-022-12/+19
| | | | | | | | | | | Handling a signal in the "Forwarded" handler while simultaneously applying a signal mask reset in the low-level handler would lead to a race condition accessing m_handlers. Change-Id: If7d27b7c3515faef894c585cd73bc461e8444ee5 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit ed404c4fdb7d1c74dca554dc9ae4d5d0903c9bc2) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>