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:
709060f
)
return result dup2() result from qt_safe_dup2()
author
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 6 Apr 2020 14:32:05 +0000
(14:32 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 6 Apr 2020 14:32:05 +0000
(14:32 +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
8e9fad0
..
4b0f364
100644
(file)
--- a/
src/core/kernel/qcore_unix_p.h
+++ b/
src/core/kernel/qcore_unix_p.h
@@
-204,9
+204,7
@@
static inline int qt_safe_dup2(int oldfd, int newfd)
{
int ret;
EINTR_LOOP(ret, ::dup2(oldfd, newfd));
- if (ret == -1)
- return -1;
- return 0;
+ return ret;
}
static inline qint64 qt_safe_read(int fd, void *data, qint64 maxlen)