Bugfix: the main task fd must not be non-blocking.