OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1268528
)
assume platforms support POSIX signals
author
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 6 Apr 2020 14:33:02 +0000
(14:33 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 6 Apr 2020 14:33:02 +0000
(14:33 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/kernel/qcore_unix_p.h
patch
|
blob
|
history
diff --git
a/src/core/kernel/qcore_unix_p.h
b/src/core/kernel/qcore_unix_p.h
index
4b0f364
..
63bd433
100644
(file)
--- a/
src/core/kernel/qcore_unix_p.h
+++ b/
src/core/kernel/qcore_unix_p.h
@@
-104,9
+104,8
@@
inline timeval operator*(const timeval &t1, int mul)
return normalizedTimeval(tmp);
}
-inline void qt_ignore_sigpipe()
+
static
inline void qt_ignore_sigpipe()
{
-#ifndef Q_NO_POSIX_SIGNALS
// Set to ignore SIGPIPE once only.
static QAtomicInt atom = QAtomicInt(0);
if (!atom) {
@@
-119,10
+118,6
@@
inline void qt_ignore_sigpipe()
::sigaction(SIGPIPE, &noaction, Q_NULLPTR);
atom = 1;
}
-#else
- // Posix signals are not supported by the underlying platform
- // so we don't need to ignore sigpipe signal explicitly
-#endif
}
// don't call QT_OPEN or ::open