Do you know a simple example? ssh and xterm are large, complex applications but I need a simple example.
Olga 2010/3/24 Nicolas Williams <Nicolas.Williams at sun.com>: > On Wed, Mar 24, 2010 at 01:33:55AM +0100, ????? ???????????? wrote: >> How do I control the master, i.e. send start/stop characters, detect >> hangup and send signals (e.g. SIGTERM) to the process connected to the >> slave fd? > > There are a number of examples of this that you can find. You might > start with: > > - sshd > - GNU screen > - expect > - xterm, rxvt, ... > > Nico > -- > -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----. `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` /\/\ /\/\ `--` `--`