summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess_unix.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2021-02-18 08:47:59 -0800
committerThiago Macieira <thiago.macieira@intel.com>2021-02-18 12:34:17 -0800
commite274d56effc13e4ba7c5fcec783c3227551551c6 (patch)
tree0a4a5c6a04ad5fb08e47f993317d2f9de4489be5 /src/corelib/io/qprocess_unix.cpp
parent7507d872856282f381354b13a3b50d865c9ce2f8 (diff)
QProcess/Unix: remove unnecessary chdir("/") before _exit()
That only created an opportunity for qWarning(), which should never be in the child process in the first place. Change-Id: Ic90d8429a0eb4837971dfffd1664e57a2291ea78 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: David Llewellyn-Jones <david.llewellyn-jones@jolla.com>
Diffstat (limited to 'src/corelib/io/qprocess_unix.cpp')
-rw-r--r--src/corelib/io/qprocess_unix.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp
index 5628456796..3d223bb725 100644
--- a/src/corelib/io/qprocess_unix.cpp
+++ b/src/corelib/io/qprocess_unix.cpp
@@ -978,8 +978,6 @@ bool QProcessPrivate::startDetached(qint64 *pid)
qt_safe_close(startedPipe[1]);
qt_safe_write(pidPipe[1], (const char *)&doubleForkPid, sizeof(pid_t));
- if (QT_CHDIR("/") == -1)
- qWarning("QProcessPrivate::startDetached: failed to chdir to /");
::_exit(1);
}