repaired proactor code (Linux)