Lines Matching refs:master_fd
275 int pty_fd, new_fd, c = 0, w, master_fd = 0;
281 master_fd = listen_socket();
282 fcntl(master_fd, F_SETFD, FD_CLOEXEC);
283 if (master_fd > TT.gmax_fd) TT.gmax_fd = master_fd;
286 pty_fd = new_session(master_fd); //master_fd = 0
308 if (!FLAG(i)) FD_SET(master_fd, &rd);
327 if (!FLAG(i) && FD_ISSET(master_fd, &rd)) { //accept new connection
328 new_fd = accept(master_fd, NULL, NULL);