We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c4582 commit 182404fCopy full SHA for 182404f
src/platform/x11/systemclipboard/waylandclipboard.cpp
@@ -21,6 +21,7 @@
21
#include <qtwaylandclientversion.h>
22
23
#include <errno.h>
24
+#include <fcntl.h>
25
#include <poll.h>
26
#include <signal.h>
27
#include <string.h>
@@ -83,6 +84,8 @@ class SendThread : public QThread {
83
84
sigemptyset(&action.sa_mask);
85
action.sa_flags = 0;
86
sigaction(SIGPIPE, &action, &oldAction);
87
+ // Unset O_NONBLOCK
88
+ fcntl(m_fd, F_SETFL, 0);
89
const qint64 written = c.write(m_data);
90
sigaction(SIGPIPE, &oldAction, nullptr);
91
c.close();
0 commit comments