aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/process_stub_unix.c
Commit message (Collapse)AuthorAgeFilesLines
* Process_stub: Make sure strings are \0 terminatedTobias Hunger2020-06-021-1/+2
| | | | | Change-Id: Id59663cd9d7546f5baef713ca4de264cc625d016 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProcessStub: Handle failed ftellRobert Loehning2017-03-081-0/+4
| | | | | | Change-Id: I07967ee4f05daa43262d205e2113325b96b429f6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.2'Eike Ziller2017-01-111-1/+3
|\ | | | | | | | | | | | | | | Conflicts: src/plugins/android/androidbuildapkstep.cpp src/plugins/genericprojectmanager/genericproject.cpp Change-Id: I3484b668f9323ed0c05de99f8dfed07c9e65ab98
| * Utils: Fix "Unused result" warning in process stubOrgad Shaneh2017-01-021-1/+3
| | | | | | | | | | Change-Id: If0fbe55106936526ec4993963f2cb0dc4041f937 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* | fix coverity complaint the right wayOswald Buddenhagen2016-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | use an assert to document in a machine-readable form that the file is expected to be null-terminated. this supersedes 5a58e962's approach of appending a null char, which would just obfuscate a problem in the calling code if it were to ever have an effect. Change-Id: Iaedb575d20abb42d98e011949e792ecf4dde3e93 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Process_stub: Make sure strings are \0 terminatedTobias Hunger2016-12-061-1/+2
|/ | | | | | Change-Id: Ic3d431e850cb09627359aae0e0c755f02b4835c0 Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Fix debugging of terminal applications on LinuxOrgad Shaneh2014-05-151-0/+12
| | | | | | | | | | | | | | On modern linux distributions (Ubuntu >= 10.10, Debian >= Wheezy), trying to debug a terminal application fails, with "ptrace: Operation not permitted". In order to allow the debugger to attach to the created process, the process itself needs to inform the kernel of the debugging process. Task-number: QTCREATORBUG-3509 Change-Id: I68670426fad18cbe3b7cce9d57633e58e631e025 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* ProcessStub: Preserve the TERM environment variableOrgad Shaneh2014-05-141-2/+4
| | | | | | | | | * If Creator is not executed from terminal, this value is missing. * If it is executed from a terminal of another type than the stub it might be wrong. Change-Id: Ia6bd1dd59be04e01398ed5cdffff3080539b10ef Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* process_stub_unix: fix race condition with reading of env fileFawzi Mohamed2013-06-251-2/+2
| | | | | | | | | | The stub incorrectly send its pid before reading the environment file, and qtcreator does interpret that as sign that it can delete the environment file. Task-number: QTCREATORBUG-9024 Change-Id: Id44777abdfdd94aa10815cb00ca27846b95a3ec7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp src/plugins/qmldesigner/designercore/include/widgetqueryview.h src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qnx/bardescriptormagicmatcher.h src/plugins/qt4projectmanager/profilekeywords.cpp src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | consoleprocess: support Terminal.app on macFawzi Mohamed2013-01-291-57/+153
|/ | | | | | | | | | | | | | | | | | | | | | | | | Distinguishes the process that starts the terminal from the stub process, as on mac to support Terminal.app they are different. Handle the stub not through the process that starts the terminal, but through the local socket (on *nix). Replace the blocking wait(...) in the main thread, with a nonblocking wait in the signal handler when receiving a SIGCHLD, to leave the main thread able to handle communication with creator. This change allows the use of terminal emulator commands that share a single instance or that fork. So this is also the real fix for QTCREATORBUG-1633 on linux. If creator crashes the stub and the debugged program live on. This was done on purpose, it could be changed if considered better. Task-number: QTCREATORBUG-6371 Task-number: QTCREATORBUG-1633 Change-Id: I4d4fb3a67b1987f4e46e2c603dcefe8c15152ad2 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Fix running applications in non-xterm terminalsNikolai Kosjar2012-08-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Setting Tools/Options/Environment/General/Terminal to one of the following works now as expected. 1. xterm -e 2. aterm -e 3. rxvt -e 4. urxvt -e 5. xfce4-terminal -x 6. konsole --nofork -e 7. gnome-terminal -x Without the '--nofork' option for konsole, from creator's pov, the terminal emulator will finish immediately and therefore creator closes the local socket. As a result of this, the user is presented with sth. like this (from the stub): Cannot connect creator comm socket /tmp/qt_temp.A13523/stub-socket: No such file or directory. Task-Number: QTCREATORBUG-1633 Change-Id: I732e20d34aebdc1591355e0c4e78c907f439924c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Update license.hjk2011-04-131-14/+13
|
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* License headers.con2010-12-171-7/+11
|
* remove nonsensical "safety net"Oswald Buddenhagen2010-09-161-2/+1
|
* Fix possible string overrun/overcopy situation.Bill King2010-06-111-2/+4
|
* define EPROTO fallback for openbsdOswald Buddenhagen2010-03-051-0/+5
|
* fix solaris compile ... finally.Oswald Buddenhagen2010-03-051-1/+6
|
* Long live the king!hjk2010-03-051-1/+1
|
* fix messageOswald Buddenhagen2009-10-131-1/+1
|
* long live the kinghjk2009-08-141-1/+1
|
* include signal.hOswald Buddenhagen2009-06-261-0/+1
| | | | | linux included it indirectly somehow, but relying on that is wrong and breaks the freebsd build.
* Update license headers and sales contact details.Jason McDonald2009-06-171-2/+2
| | | | Reviewed-by: Trust Me
* use temp file to pass env on unix as wellOswald Buddenhagen2009-04-141-10/+36
| | | | | the linux command line can be 32k long ... which might still be not enough. well, in fact, it just makes the 'ps' output unreadable.
* Added and corrected copyright headersThorbjørn Lindeijer2009-03-201-21/+17
|
* "debug in terminal" feature.Oswald Buddenhagen2009-02-271-0/+216
includes complete refactoring of ConsoleProcess.