- if (command_pipe >= 0 && mode == COMMAND_MODE) {
- FD_SET(command_pipe, &rfds);
- max_fileno = PARA_MAX(max_fileno, command_pipe);
- }
- if (curses_active)
- FD_SET(STDIN_FILENO, &rfds);
+ if (command_pipe >= 0 && mode == COMMAND_MODE)
+ para_fd_set(command_pipe, &rfds, &max_fileno);