summaryrefslogtreecommitdiffstats
path: root/src/network/socket
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@trolltech.com>2009-09-02 14:08:57 (GMT)
committerPeter Hartmann <peter.hartmann@trolltech.com>2009-09-02 14:12:26 (GMT)
commit3df6f4c0adf7738e631c2d823dc07a5358d3de66 (patch)
tree89cc57da8e20eb22a0ba8ae6ad22c4d7eb280a6c /src/network/socket
parent7f455eed3f38153db169697ca08250a396e3207c (diff)
downloadQt-3df6f4c0adf7738e631c2d823dc07a5358d3de66.zip
Qt-3df6f4c0adf7738e631c2d823dc07a5358d3de66.tar.gz
Qt-3df6f4c0adf7738e631c2d823dc07a5358d3de66.tar.bz2
QNativeSocketEngine: do not issue warning if socketDescriptor is <= 0
... but leave it there on Symbian. Reviewed-by: Aleksandar Sasha Babic
Diffstat (limited to 'src/network/socket')
-rw-r--r--src/network/socket/qnativesocketengine_unix.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp
index ec9f103..3df3ab7 100644
--- a/src/network/socket/qnativesocketengine_unix.cpp
+++ b/src/network/socket/qnativesocketengine_unix.cpp
@@ -563,9 +563,12 @@ int QNativeSocketEnginePrivate::nativeAccept()
if(acceptedDescriptor > 0) {
// Ensure that the socket is closed on exec*()
::fcntl(acceptedDescriptor, F_SETFD, FD_CLOEXEC);
- } else {
+ }
+#ifdef Q_OS_SYMBIAN
+ else {
qWarning("QNativeSocketEnginePrivate::nativeAccept() - acceptedDescriptor <= 0");
}
+#endif
return acceptedDescriptor;
}