4 ms·
Yea that's a no go. The rest of the process is doing stuff with those!
by kjeetgill 8y ago
Yea that's a no go. The rest of the process is doing stuff with those!
- int0x80 8y agoGNU readline gives the option to provide custom stdio streams. rl_{in,out}stream. You can use fdopen to get a stdio stream from a fd (socket for example). This can be problematic if not done correctly (buffering & stuff). Official documentation has more info on all this. You can also fork+dup2+pipe/pty and use stdin/out on the forked process.