summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/adminauthorization_x11.cpp
diff options
context:
space:
mode:
authorFrerich Raabe <raabe@froglogic.com>2015-11-11 15:27:18 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-12-09 08:33:21 +0000
commit8283726e31a4ac28350346335bd485fca933141d (patch)
treeaf3a5fc74c9b3577d07488d27e41612d60b9644a /src/libs/installer/adminauthorization_x11.cpp
parent610f7e3ce241b92f6fad5ad783fbbeb9dd3f3be4 (diff)
Fixed bug in making stderr pipe read-handle non-blocking
Use F_GETFL to set the flags, and S_SETFL to set them. Change-Id: Ia32d020f320e819db5f0976972e38981d22eaa26 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/adminauthorization_x11.cpp')
-rw-r--r--src/libs/installer/adminauthorization_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/adminauthorization_x11.cpp b/src/libs/installer/adminauthorization_x11.cpp
index e8221be34..91d33950c 100644
--- a/src/libs/installer/adminauthorization_x11.cpp
+++ b/src/libs/installer/adminauthorization_x11.cpp
@@ -132,7 +132,7 @@ bool AdminAuthorization::execute(QWidget *parent, const QString &program, const
if (pipe(pipedData) != 0)
return false;
- int flags = ::fcntl(pipedData[0], F_GETFD);
+ int flags = ::fcntl(pipedData[0], F_GETFL);
if (flags != -1)
::fcntl(pipedData[0], F_SETFL, flags | O_NONBLOCK);