Re: [dev] [st][PATCH v2] Add tty line support
> > + if (opt_line) { > > + if((cmdfd = open(opt_line, O_RDWR)) < 0) > > + die("open line failed: %s\n", strerror(errno)); > > + close(STDIN_FILENO); > > + dup(cmdfd); > > + stty(); > > + return; > Is the duplication of the cmd
Re: [dev] [st][PATCH v2] Add tty line support
On Tue, Apr 14, 2015 at 12:35:52PM +0200, Roberto E. Vargas Caballero wrote: > + if (opt_line) { > + if((cmdfd = open(opt_line, O_RDWR)) < 0) > + die("open line failed: %s\n", strerror(errno)); > + close(STDIN_FILENO); > + dup(cmdfd); > +