libnetworking: Avoid spurious event delivery

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.
This commit is contained in:
Sebastian Huber
2015-01-16 09:05:15 +01:00
parent 8a7048ac5e
commit f2f39f3c92

View File

@@ -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) {