From aeae977c23470c78cac1c886958c58a37f206b96 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 May 2012 15:45:29 +0200 Subject: Do not stop delivering packets when a pfinet has died We should remove the pfinet from the list instead. * libmachdev/net.c (deliver_msg): Do not break the deliver loop when mach_msg returned an error. --- libmachdev/net.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libmachdev/net.c') diff --git a/libmachdev/net.c b/libmachdev/net.c index 606765f5..ed52f0e4 100644 --- a/libmachdev/net.c +++ b/libmachdev/net.c @@ -214,9 +214,7 @@ deliver_msg(struct net_rcv_msg *msg, if_filter_list_t *ifp) 0, MACH_PORT_NULL); if (err != MACH_MSG_SUCCESS) { - mach_port_deallocate(mach_task_self (), - ((mach_msg_header_t *)msg)->msgh_remote_port); - return -1; + /* TODO: remove from filter */ } } } -- cgit v1.2.3