diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-03-24 09:56:11 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-04-20 10:01:12 +0000 |
commit | e633c17385bd2484d152c1c69c9eb36f5bc9239f (patch) | |
tree | ffa9d68db22edd411f11151de7f3b12ba42b918c | |
parent | c0a12a857343b58f588063a89bd2cc4dcf4419bc (diff) | |
download | qtdoc-e633c17385bd2484d152c1c69c9eb36f5bc9239f.tar.gz |
Update connects to QSocketNotifier::activated
The int-overload will in some cases truncate the descriptor.
So it's being replaced.
Task-number: QTBUG-70441
Change-Id: I1cd7dd0a8064dc90b862b41c969d270ac707439f
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
-rw-r--r-- | doc/src/snippets/code/doc_src_unix-signal-handlers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp b/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp index f1827152..f2c2d198 100644 --- a/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp +++ b/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp @@ -86,9 +86,9 @@ MyDaemon::MyDaemon(QObject *parent) if (::socketpair(AF_UNIX, SOCK_STREAM, 0, sigtermFd)) qFatal("Couldn't create TERM socketpair"); snHup = new QSocketNotifier(sighupFd[1], QSocketNotifier::Read, this); - connect(snHup, SIGNAL(activated(int)), this, SLOT(handleSigHup())); + connect(snHup, SIGNAL(activated(QSocketDescriptor)), this, SLOT(handleSigHup())); snTerm = new QSocketNotifier(sigtermFd[1], QSocketNotifier::Read, this); - connect(snTerm, SIGNAL(activated(int)), this, SLOT(handleSigTerm())); + connect(snTerm, SIGNAL(activated(QSocketDescriptor)), this, SLOT(handleSigTerm())); ... } |