summaryrefslogtreecommitdiff
path: root/src/network/socket
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@trolltech.com>2009-09-02 16:08:57 +0200
committerPeter Hartmann <peter.hartmann@trolltech.com>2009-09-02 16:12:26 +0200
commit3df6f4c0adf7738e631c2d823dc07a5358d3de66 (patch)
tree89cc57da8e20eb22a0ba8ae6ad22c4d7eb280a6c /src/network/socket
parent7f455eed3f38153db169697ca08250a396e3207c (diff)
downloadqt4-tools-3df6f4c0adf7738e631c2d823dc07a5358d3de66.tar.gz
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 ec9f10352f..3df3ab7aad 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;
}