summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnet_unix_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-04-23 18:07:47 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 11:29:37 (GMT)
commit0b757d0c1b6f64d17086621ec692369d37fd62fc (patch)
treea11ea33f33a86790002b92d1cd2a57efe0dcf4dd /src/network/socket/qnet_unix_p.h
parentd7d0d20469d447933c827d169651c3751c7069ad (diff)
downloadQt-0b757d0c1b6f64d17086621ec692369d37fd62fc.zip
Qt-0b757d0c1b6f64d17086621ec692369d37fd62fc.tar.gz
Qt-0b757d0c1b6f64d17086621ec692369d37fd62fc.tar.bz2
Use the safe versions of the network system calls I have just added.
Reviewed-By: ossi
Diffstat (limited to 'src/network/socket/qnet_unix_p.h')
-rw-r--r--src/network/socket/qnet_unix_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qnet_unix_p.h b/src/network/socket/qnet_unix_p.h
index 5256131..80a4c58 100644
--- a/src/network/socket/qnet_unix_p.h
+++ b/src/network/socket/qnet_unix_p.h
@@ -100,7 +100,7 @@ static inline int qt_safe_accept(int s, struct sockaddr *addr, QT_SOCKLEN_T *add
Q_ASSERT((flags & ~O_NONBLOCK) == 0);
register int fd;
-#if 0 // no released version of glibc contains accept4 yet
+#if QT_UNIX_SUPPORTS_THREADSAFE_CLOEXEC
// use accept4
int sockflags = SOCK_CLOEXEC;
if (flags & O_NONBLOCK)