From e274d56effc13e4ba7c5fcec783c3227551551c6 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 18 Feb 2021 08:47:59 -0800 Subject: 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 Reviewed-by: David Llewellyn-Jones --- src/corelib/io/qprocess_unix.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/corelib/io/qprocess_unix.cpp') 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); } -- cgit v1.2.3