summaryrefslogtreecommitdiff
path: root/netcon/NetconEthernetTap.cpp
diff options
context:
space:
mode:
authorJanjaap Bos <janjaap.bos@capitar.com>2015-12-21 21:20:22 +0100
committerJanjaap Bos <janjaap.bos@capitar.com>2015-12-21 21:20:22 +0100
commitc8056452b838e162b13531886606557d76957c60 (patch)
treed05b4ea3b0a880c53845cb7b7b64ea8fdc900885 /netcon/NetconEthernetTap.cpp
parent64e273e9c0aac879cc84ddc52d0431c7b957d09d (diff)
downloadinfinitytier-c8056452b838e162b13531886606557d76957c60.tar.gz
infinitytier-c8056452b838e162b13531886606557d76957c60.zip
fix / workaround for ubuntu
Otherwise, if started with -d as daemon, the netcon service dies after intercept listen registers.
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
-rw-r--r--netcon/NetconEthernetTap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp
index 59c021e1..0b74d5dc 100644
--- a/netcon/NetconEthernetTap.cpp
+++ b/netcon/NetconEthernetTap.cpp
@@ -547,6 +547,9 @@ void NetconEthernetTap::threadMain()
if (read(_phy.getDescriptor(tcp_connections[i]->dataSock), &c, 1) < 0) {
// Still in listening state
}
+ else if (read(_phy.getDescriptor(tcp_connections[i]->rpcSock), &c, 1) < 0) {
+ // Still in listening state
+ }
else {
// Here we should handle the case there there is incoming data (?)
dwr(MSG_DEBUG, " tap_thread(): Listening socketpair closed. Removing RPC connection (%d)\n",