summaryrefslogtreecommitdiff
path: root/src/tools/qtcreatorcrashhandler
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-06-25 21:54:53 +0300
committerNikolai Kosjar <nikolai.kosjar@digia.com>2013-06-26 12:15:07 +0200
commit970f6a80355e064346286a19444d54f65acf681d (patch)
tree999123671f98690656417d5c9648cc510308f644 /src/tools/qtcreatorcrashhandler
parentb0d9dd0b47ea2733de7d895c326b3088264e5e39 (diff)
downloadqt-creator-970f6a80355e064346286a19444d54f65acf681d.tar.gz
CrashHandler: Use exec variants that search in path
Executable can be non-absolute Change-Id: Ibb0a4385ef0d763fe2aae2c8ac0b205328a64870 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/tools/qtcreatorcrashhandler')
-rw-r--r--src/tools/qtcreatorcrashhandler/crashhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qtcreatorcrashhandler/crashhandler.cpp b/src/tools/qtcreatorcrashhandler/crashhandler.cpp
index 4b3a59b0f5..b757d11a1a 100644
--- a/src/tools/qtcreatorcrashhandler/crashhandler.cpp
+++ b/src/tools/qtcreatorcrashhandler/crashhandler.cpp
@@ -246,9 +246,9 @@ void CrashHandler::runCommand(QStringList commandLine, QStringList environment,
qFatal("%s: freopen() failed for stderr: %s.\n.", Q_FUNC_INFO, strerror(errno));
if (environment.isEmpty())
- execv(argv[0], argv.data());
+ execvp(argv[0], argv.data());
else
- execve(argv[0], argv.data(), envp.data());
+ execvpe(argv[0], argv.data(), envp.data());
_exit(EXIT_FAILURE);
} default: // parent
if (waitMode == WaitForExit) {