projects
/
sdk
/
tools
/
netcoredbg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
770a9be
)
Close stdin, stdout and stderr when using --server option
author
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Mon, 23 Apr 2018 16:49:22 +0000
(19:49 +0300)
committer
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Fri, 27 Apr 2018 17:49:15 +0000
(20:49 +0300)
src/debug/netcoredbg/platform.cpp
patch
|
blob
|
history
diff --git
a/src/debug/netcoredbg/platform.cpp
b/src/debug/netcoredbg/platform.cpp
index 1482f1dec47f77545399ff9f2c5980b2b9bdb1a7..78ec636a38d7d0e50478e2d24e5e79e8c4cc2d9a 100644
(file)
--- a/
src/debug/netcoredbg/platform.cpp
+++ b/
src/debug/netcoredbg/platform.cpp
@@
-313,6
+313,11
@@
IORedirectServer::IORedirectServer(uint16_t port) : m_in(nullptr), m_out(nullptr
}
::listen(m_sockfd, 5);
+
+ close(STDIN_FILENO);
+ close(STDOUT_FILENO);
+ close(STDERR_FILENO);
+
clilen = sizeof(cli_addr);
newsockfd = ::accept(m_sockfd, (struct sockaddr *) &cli_addr, &clilen);
if (newsockfd < 0)