aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Correct signal handler HowToAxel Spoerl2024-12-191-2/+6
| | | | | | | | | Use PMF based connect syntax. Add initialization of static members, to make sure copied code compiles. Pick-to: 6.9 6.8 6.5 Change-Id: Ib531f793de0dfd2f42083a5a0a4f6dea018166ed Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-071-49/+2
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: Idfd176b7f7b077a5b7c66b7738dc9bcac94ab290 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Doc: Fix snippetPaul Wicking2020-04-241-0/+1
| | | | | | | | | | | The field sa_flags of the structure term is not initialized to zero, so SA_RESTART is in OR with whatever value was in the memory. It should be set to zero as already done for the structure hup. Fixes: QTBUG-83686 Change-Id: If4c2b68136fb0cab26af164bbdb461807b11ce70 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Levon Sargsyan <levon.sargsyan@qt.io>
* Update connects to QSocketNotifier::activatedMårten Nordheim2020-04-201-2/+2
| | | | | | | | | | The int-overload will in some cases truncate the descriptor. So it's being replaced. Task-number: QTBUG-70441 Change-Id: I1cd7dd0a8064dc90b862b41c969d270ac707439f Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-06-291-2/+2
|\ | | | | | | | | | | | | | | Conflicts: doc/src/legal/3rdparty.qdoc doc/src/platforms/supported-platforms.qdocinc Change-Id: I09059d9bc22fcc69e86f100b9c3ef4b24639eef9
| * Unix signals: fix check of sigaction's return valueGiuseppe D'Angelo2016-05-291-2/+2
| | | | | | | | | | | | | | | | | | sigaction(2) returns 0 on success, non-zero (-1) on failure, so checking for > 0 is actually never going to detect failure. Change-Id: I78b4a00be99de4c6424f0cfa0c91ff712e96d1ff Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* | Unify license header usageAntti Kokko2016-02-041-3/+13
|/ | | | | | | Updated BSD license. Change-Id: Icc360a040f76765d920750f4e590da2717b7041f Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Update copyright headersAntti Kokko2015-02-171-4/+4
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: Iedecec76f88fcf709d31bf7bfc5fe817302ecae1 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: If537f6b98e4a68d1bfacf562c48332db8912c26a Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-231-6/+6
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I887dbadf259a84981160c00476a93fe581b4baa2 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I26014382bafefcdb1cbb982e4a6a72dc94df09ae Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-201-1/+1
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: Ia673fb3c9e144cfa4c0e02b82cd754d9ec45cce2 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Docs: Forward-ported typo and link fixes from Qt 4.8Janne Anttila2012-01-111-3/+3
| | | | | | | | | | | This commit brings already accepted doc fixes to Qt5. Task-number: QTBUG-20957 Change-Id: Id7cf5a500ddd8539deee30b60bf75f931b625fdd Merge-request: 1402 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Update copyright year in license headers.Jason McDonald2012-01-051-1/+1
| | | | | | Change-Id: I2b443891f2c91b90be2f2df61a0dde4a93a86967 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Initial import from the monolithic Qt.Qt by Nokia2011-04-271-0/+150
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12