[PATCH 1/3] libnetworking: Avoid spurious event delivery
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Jan 16 08:32:29 UTC 2015
The so_pgid field contains the task identifier if this task waits for
the SOSLEEP_EVENT event. Do not inherit this from the accept socket.
---
cpukit/libnetworking/kern/uipc_socket2.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/cpukit/libnetworking/kern/uipc_socket2.c b/cpukit/libnetworking/kern/uipc_socket2.c
index 8c760ad..f42b612 100644
--- a/cpukit/libnetworking/kern/uipc_socket2.c
+++ b/cpukit/libnetworking/kern/uipc_socket2.c
@@ -226,7 +226,6 @@ sonewconn1(struct socket *head, int connstatus)
so->so_state = head->so_state | SS_NOFDREF;
so->so_proto = head->so_proto;
so->so_timeo = head->so_timeo;
- so->so_pgid = head->so_pgid;
so->so_uid = head->so_uid;
(void) soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat);
if (connstatus) {
--
1.8.4.5
More information about the devel
mailing list