summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-19 20:33:26 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-19 20:33:26 +0200
commitc3485a0b159469c0899c76de230f2d36d371909e (patch)
tree29aa07287e287a406a2740f57569c33b2fe69852 /src
parent6a4109706b20266833619d26cd89c5f9447fdd91 (diff)
downloadouroboros-c3485a0b159469c0899c76de230f2d36d371909e.tar.gz
ouroboros-c3485a0b159469c0899c76de230f2d36d371909e.zip
ipcpd: shim-udp: removed debug code
some debug code for locking and a sleep check are removed from the shim-udp.
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/shim-udp/main.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 4f70d053..819c8149 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -762,14 +762,6 @@ void ipcp_sig_handler(int sig, siginfo_t * info, void * c)
default:
return;
}
-
- LOG_DBGF("Lock check.");
- rw_lock_wrlock(&_ap_instance->flows_lock);
- rw_lock_unlock(&_ap_instance->flows_lock);
- LOG_DBGF("flows_lock passed.");
- rw_lock_wrlock(&_ipcp->state_lock);
- rw_lock_unlock(&_ipcp->state_lock);
- LOG_DBGF("state_lock passed.");
}
static int ipcp_udp_bootstrap(struct dif_config * conf)
@@ -1358,10 +1350,6 @@ static int ipcp_udp_flow_dealloc(int port_id)
{
int fd = -1;
struct shm_ap_rbuff * rb;
- struct timespec wait = {0, 1000000};
-
- /* flow deallocation should wait for 2 MPL */
- nanosleep(&wait, NULL);
LOG_DBGF("Deallocating flow with port_id %d.", port_id);