select->poll conversion, upstream patch
fixes
init stack on server too