Made progress. Still doesn't work, but it at least gets to accept() now.