Developing file descriptor handling