Use a fork callback in select()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Mar 2016 15:20:03 +0000 (11:20 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Mar 2016 19:47:38 +0000 (15:47 -0400)
commitb5e18134ff359969ad76c296bdb2022cfb0030f6
treed4ddf1c6cb12ad6e6542520fdc18a2f65801c76e
parent2c0321752eecc671478cc7ee76cc59572da034c9
Use a fork callback in select()

We need to flush our state in the child on a fork.  Otherwise we'll think
we are still tracking the FDs, even though the underlying taps weren't
inherited.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tests/select_server.c
user/iplib/select.c