Re: [dev] [st][PATCH v2] Add tty line support

2015-04-21 Thread Roberto E. Vargas Caballero
> > + 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

2015-04-21 Thread Alex Pilon
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); > +