Reverted accept_function to take only one argument (the fd)